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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 7 07:08:52 EST 2009


Author: glynn
Date: 2009-01-07 07:08:52 -0500 (Wed, 07 Jan 2009)
New Revision: 35257

Modified:
   grass/trunk/lib/cairodriver/Graph.c
Log:
Make non-X11 build work


Modified: grass/trunk/lib/cairodriver/Graph.c
===================================================================
--- grass/trunk/lib/cairodriver/Graph.c	2009-01-07 12:05:58 UTC (rev 35256)
+++ grass/trunk/lib/cairodriver/Graph.c	2009-01-07 12:08:52 UTC (rev 35257)
@@ -182,6 +182,7 @@
     if (do_read && do_map)
 	map_file();
 
+#if CAIRO_HAS_XLIB_XRENDER_SURFACE
     if (is_xlib) {
 	if (do_read)
 	    cairo_read_image();
@@ -190,6 +191,7 @@
 	init_xlib();
 	ca.mapped = 1;
     }
+#endif
 
     if (!ca.mapped && !is_vector)
 	ca.grid = G_malloc(ca.height * ca.stride);



More information about the grass-commit mailing list