[cairo] Bug in X11 backend ?

Mike Emmel mike.emmel at gmail.com
Wed Apr 11 21:37:26 PDT 2007


I ran into the fact that the xlib backend will not compile if Xrender
is not present.

I made this change not sure if its right the function did not seem to
actually depend on Xrender at that level.

diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h
index 8ba46a2..83511c4 100644
--- a/src/cairo-xlib-private.h
+++ b/src/cairo-xlib-private.h
@@ -66,11 +66,7 @@ _cairo_xlib_add_close_display_hook (Display
*display, void (*func) (Display *, v
 cairo_private void
 _cairo_xlib_remove_close_display_hook (Display *display, void *key);

-#if CAIRO_HAS_XLIB_XRENDER_SURFACE
-
 #include "cairo-xlib-xrender.h"
 slim_hidden_proto (cairo_xlib_surface_create_with_xrender_format);

-#endif
-
 #endif /* CAIRO_XLIB_PRIVATE_H */


More information about the cairo mailing list