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>
This commit is contained in:
Uli Schlachter 2011-10-08 10:48:26 +02:00
parent 960ae5ab2e
commit 5f3fd8c09c

View file

@ -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 {