[GRASS-SVN] r33073 - grass/trunk/lib/cairodriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 25 19:39:37 EDT 2008
Author: glynn
Date: 2008-08-25 19:39:36 -0400 (Mon, 25 Aug 2008)
New Revision: 33073
Modified:
grass/trunk/lib/cairodriver/Raster.c
Log:
Use nearest-neighbour for scaling rasters
Modified: grass/trunk/lib/cairodriver/Raster.c
===================================================================
--- grass/trunk/lib/cairodriver/Raster.c 2008-08-25 23:39:05 UTC (rev 33072)
+++ grass/trunk/lib/cairodriver/Raster.c 2008-08-25 23:39:36 UTC (rev 33073)
@@ -117,6 +117,7 @@
cairo_translate(cairo, dst_l, dst_t);
cairo_scale(cairo, dst_w / src_w, dst_h / src_h);
cairo_set_source_surface(cairo, src_surf, 0, 0);
+ cairo_pattern_set_filter(cairo_get_source(cairo), CAIRO_FILTER_NEAREST);
cairo_paint(cairo);
cairo_restore(cairo);
More information about the grass-commit
mailing list