[GRASS-SVN] r35255 - grass/trunk/lib/cairodriver

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 7 06:51:59 EST 2009


Author: glynn
Date: 2009-01-07 06:51:59 -0500 (Wed, 07 Jan 2009)
New Revision: 35255

Modified:
   grass/trunk/lib/cairodriver/Draw_bitmap.c
Log:
Change version check for cairo_format_stride_for_width(); now >= 1.5.8


Modified: grass/trunk/lib/cairodriver/Draw_bitmap.c
===================================================================
--- grass/trunk/lib/cairodriver/Draw_bitmap.c	2009-01-07 09:04:16 UTC (rev 35254)
+++ grass/trunk/lib/cairodriver/Draw_bitmap.c	2009-01-07 11:51:59 UTC (rev 35255)
@@ -33,7 +33,7 @@
 
     G_debug(1, "Cairo_Bitmap: %d %d %d", ncols, nrows, threshold);
 
-#if CAIRO_VERSION_MAJOR > 1 || CAIRO_VERSION_MAJOR == 1 && CAIRO_VERSION_MINOR >= 6
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,5,8)
     stride = cairo_format_stride_for_width(CAIRO_FORMAT_A8, ncols);
 #else
 #define MULTIPLE 4



More information about the grass-commit mailing list