summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-10-08 10:48:26 +0200
committerUli Schlachter <psychon@znc.in>2011-10-08 10:48:26 +0200
commit5f3fd8c09c9542259d5c278eb7c0a2ef79f6e369 (patch)
treed306dcca6ffed057b8ffbeea1a1b89a6b9d0c601 /boilerplate
parent960ae5ab2ee7910c9ef7b0b7df824d701c4d1729 (diff)
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@znc.in>
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate-xlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-xlib.c b/boilerplate/cairo-boilerplate-xlib.c
index eaaae99e..38c11357 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 {