mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 01:58:04 +02:00
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:
parent
960ae5ab2e
commit
5f3fd8c09c
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue