summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-11-05 11:50:20 -0500
committerBehdad Esfahbod <behdad@behdad.org>2008-11-05 11:54:54 -0500
commita1ab11df01962bea5752f5a5b53926a26a6f34ae (patch)
tree17dc53aad99d649ef1a3bf4ff24e7af835106438
parent1d8ad69abb88f6e0283b6ce2aadc5d801b8e3722 (diff)
Define RepeatNone, etc if the available Render version doesn't (#18385)
-rw-r--r--src/cairo-xlib-xrender-private.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cairo-xlib-xrender-private.h b/src/cairo-xlib-xrender-private.h
index 329262c77..eee585cc4 100644
--- a/src/cairo-xlib-xrender-private.h
+++ b/src/cairo-xlib-xrender-private.h
@@ -45,6 +45,24 @@
#include <X11/extensions/Xrender.h>
#include <X11/extensions/renderproto.h>
+/* We require Render >= 0.6. The following defines were only added in
+ * 0.10. Make sure they are defined.
+ */
+
+/* Filters included in 0.10 */
+#ifndef FilterConvolution
+#define FilterConvolution "convolution"
+#endif
+
+/* Extended repeat attributes included in 0.10 */
+#ifndef RepeatNone
+#define RepeatNone 0
+#define RepeatNormal 1
+#define RepeatPad 2
+#define RepeatReflect 3
+#endif
+
+
#else /* !CAIRO_HAS_XLIB_XRENDER_SURFACE */
/* Provide dummy symbols and macros to get it compile and take the fallback