Author: cazfi
Date: Sun Mar 12 09:46:30 2017
New Revision: 35095

URL: http://svn.gna.org/viewcvs/freeciv?rev=35095&view=rev
Log:
Pass valid region to gdk_window_begin_draw_frame() calls.

Reported by Jochen Trumpf <jochent>

See gna bug #25529

Modified:
    branches/S3_0/client/gui-gtk-3.22/mapview.c

Modified: branches/S3_0/client/gui-gtk-3.22/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/client/gui-gtk-3.22/mapview.c?rev=35095&r1=35094&r2=35095&view=diff
==============================================================================
--- branches/S3_0/client/gui-gtk-3.22/mapview.c (original)
+++ branches/S3_0/client/gui-gtk-3.22/mapview.c Sun Mar 12 09:46:30 2017
@@ -534,7 +534,8 @@
     return;
   }
 
-  ctx = gdk_window_begin_draw_frame(pixmap, NULL);
+  ctx = gdk_window_begin_draw_frame(pixmap,
+                                    gdk_window_get_clip_region(pixmap));
   cr = gdk_drawing_context_get_cairo_context(ctx);
   cairo_scale(cr, zoom, zoom);
   cairo_set_source_surface(cr, ssprite->surface, canvas_x, canvas_y);
@@ -742,7 +743,8 @@
   }
 
   wndw = gtk_widget_get_window(map_canvas);
-  ctx = gdk_window_begin_draw_frame(wndw, NULL);
+  ctx = gdk_window_begin_draw_frame(wndw,
+                                    gdk_window_get_clip_region(wndw));
   cr = gdk_drawing_context_get_cairo_context(ctx);
   gdk_cairo_set_source_rgba(cr, &pcolor->color);
   cairo_set_line_width(cr, 2.0);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to