Browse Source

Change version check for cairo_format_stride_for_width(); now >= 1.5.8

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35255 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 years ago
parent
commit
ae9d200297
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/cairodriver/Draw_bitmap.c

+ 1 - 1
lib/cairodriver/Draw_bitmap.c

@@ -33,7 +33,7 @@ void Cairo_Bitmap(int ncols, int nrows, int threshold,
 
     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