[GRASS-SVN] r56026 - grass/branches/develbranch_6/lib/cairodriver

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Apr 28 23:26:14 PDT 2013


Author: hamish
Date: 2013-04-28 23:26:14 -0700 (Sun, 28 Apr 2013)
New Revision: 56026

Modified:
   grass/branches/develbranch_6/lib/cairodriver/Draw_bitmap.c
   grass/branches/develbranch_6/lib/cairodriver/Raster.c
Log:
fixes for cairo 1.10 (backport from trunk r44356 and r44963)

Modified: grass/branches/develbranch_6/lib/cairodriver/Draw_bitmap.c
===================================================================
--- grass/branches/develbranch_6/lib/cairodriver/Draw_bitmap.c	2013-04-28 23:38:53 UTC (rev 56025)
+++ grass/branches/develbranch_6/lib/cairodriver/Draw_bitmap.c	2013-04-29 06:26:14 UTC (rev 56026)
@@ -49,6 +49,7 @@
     for (i = 0; i < nrows; i++)
 	memcpy(&data[i * stride], &buf[i * ncols], ncols);
 
+    cairo_surface_mark_dirty(surf);
     cairo_mask_surface(cairo, surf, cur_x, cur_y);
 
     cairo_surface_destroy(surf);

Modified: grass/branches/develbranch_6/lib/cairodriver/Raster.c
===================================================================
--- grass/branches/develbranch_6/lib/cairodriver/Raster.c	2013-04-28 23:38:53 UTC (rev 56025)
+++ grass/branches/develbranch_6/lib/cairodriver/Raster.c	2013-04-29 06:26:14 UTC (rev 56026)
@@ -82,6 +82,7 @@
     cairo_translate(cairo, dst_l, dst_t);
     cairo_scale(cairo, (double)dst_w / (double)src_w,
 		(double)dst_h / (double)src_h);
+    cairo_surface_mark_dirty(src_surf);
     cairo_set_source_surface(cairo, src_surf, 0, 0);
     cairo_paint(cairo);
     cairo_restore(cairo);



More information about the grass-commit mailing list