[GRASS-SVN] r44356 - grass/trunk/lib/cairodriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 19 05:13:05 EST 2010
Author: mmetz
Date: 2010-11-19 02:13:05 -0800 (Fri, 19 Nov 2010)
New Revision: 44356
Modified:
grass/trunk/lib/cairodriver/Raster.c
Log:
cairo API: tell cairo that drawing has been done to surface using means other than cairo
Modified: grass/trunk/lib/cairodriver/Raster.c
===================================================================
--- grass/trunk/lib/cairodriver/Raster.c 2010-11-18 14:47:48 UTC (rev 44355)
+++ grass/trunk/lib/cairodriver/Raster.c 2010-11-19 10:13:05 UTC (rev 44356)
@@ -12,9 +12,9 @@
\author Glynn Clements
*/
-#include <grass/glocale.h>
#include "cairodriver.h"
+#include <grass/glocale.h>
static int src_t, src_b, src_l, src_r, src_w, src_h;
static double dst_t, dst_b, dst_l, dst_r, dst_w, dst_h;
@@ -117,6 +117,7 @@
cairo_save(cairo);
cairo_translate(cairo, dst_l, dst_t);
cairo_scale(cairo, dst_w / src_w, dst_h / src_h);
+ cairo_surface_mark_dirty(src_surf);
cairo_set_source_surface(cairo, src_surf, 0, 0);
cairo_pattern_set_filter(cairo_get_source(cairo), CAIRO_FILTER_NEAREST);
cairo_paint(cairo);
More information about the grass-commit
mailing list