[cairo-commit] boilerplate/cairo-boilerplate-xlib.c

Uli Schlachter psychon at kemper.freedesktop.org
Sat Oct 8 01:51:59 PDT 2011


 boilerplate/cairo-boilerplate-xlib.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5f3fd8c09c9542259d5c278eb7c0a2ef79f6e369
Author: Uli Schlachter <psychon at znc.in>
Date:   Sat Oct 8 10:48:26 2011 +0200

    xlib: Fix compilation with --disable-xlib-xrender
    
    The boilerplate code tries to set PolyModePrecise on the xlib device. However,
    because xrender is disabled, cairo-xlib-xrender.h wasn't included and didn't
    include the needed xrender headers for this define.
    
    This define is copied from cairo-xlib-xrender-private.h
    
    Signed-off-by: Uli Schlachter <psychon at znc.in>

diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c
index eaaae99..38c1135 100644
--- a/boilerplate/cairo-boilerplate-xlib.c
+++ b/boilerplate/cairo-boilerplate-xlib.c
@@ -34,6 +34,10 @@
 
 #include <X11/Xutil.h> /* for XDestroyImage */
 
+#if !CAIRO_HAS_XLIB_XRENDER_SURFACE
+#define PolyModePrecise			    0
+#endif
+
 static const cairo_user_data_key_t key;
 
 typedef struct _xlib_target_closure {


More information about the cairo-commit mailing list