summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-07-31 14:48:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-07-31 14:48:32 +0100
commit097484da6fd70867ed2128e78247eab5c43217fb (patch)
treef06f2640a7588498b758ac38533487a7b1e45e89 /src/cairo-xlib-surface-private.h
parent397538a251ae19bb1a34650763eb9a80108a96de (diff)
downloadcairo-097484da6fd70867ed2128e78247eab5c43217fb.tar.gz
[boilerplate] Conditionally tweak the xlib surface
Prior to introduction of the buggy members to the surface, we obviously cannot set them. However, the boilerplate code is meant to compile against older revisions of the library so we need to check for the existence prior to use.
Diffstat (limited to 'src/cairo-xlib-surface-private.h')
-rw-r--r--src/cairo-xlib-surface-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-xlib-surface-private.h b/src/cairo-xlib-surface-private.h
index d963cd6a5..cb97650bb 100644
--- a/src/cairo-xlib-surface-private.h
+++ b/src/cairo-xlib-surface-private.h
@@ -78,6 +78,9 @@ struct _cairo_xlib_surface {
unsigned int buggy_gradients : 1;
unsigned int buggy_pad_reflect : 1;
unsigned int buggy_repeat : 1;
+#define CAIRO_XLIB_SURFACE_HAS_BUGGY_GRADIENTS 1
+#define CAIRO_XLIB_SURFACE_HAS_BUGGY_PAD_REFLECT 1
+#define CAIRO_XLIB_SURFACE_HAS_BUGGY_REPEAT 1
int width;
int height;