diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-31 14:48:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-31 14:48:32 +0100 |
commit | 097484da6fd70867ed2128e78247eab5c43217fb (patch) | |
tree | f06f2640a7588498b758ac38533487a7b1e45e89 /src/cairo-xlib-surface-private.h | |
parent | 397538a251ae19bb1a34650763eb9a80108a96de (diff) | |
download | cairo-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.h | 3 |
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; |