summarylogtreecommitdiffstats
path: root/cairo-server-side-gradients.patch
diff options
context:
space:
mode:
Diffstat (limited to 'cairo-server-side-gradients.patch')
-rw-r--r--cairo-server-side-gradients.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/cairo-server-side-gradients.patch b/cairo-server-side-gradients.patch
new file mode 100644
index 00000000000..b5b012aaf21
--- /dev/null
+++ b/cairo-server-side-gradients.patch
@@ -0,0 +1,17 @@
+# Description: don't use server side gradients most drivers don't handle it
+Index: cairo-1.12.2/src/cairo-xlib-display.c
+===================================================================
+--- a/src/cairo-xlib-display.c 2015-03-10 23:21:07.000000000 +0100
++++ b/src/cairo-xlib-display.c 2015-03-11 21:59:05.751030406 +0100
+@@ -263,11 +263,7 @@ _cairo_xlib_device_create (Display *dpy)
+ /* Prior to Render 0.10, there is no protocol support for gradients and
+ * we call function stubs instead, which would silently consume the drawing.
+ */
+-#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
+ display->buggy_gradients = TRUE;
+-#else
+- display->buggy_gradients = FALSE;
+-#endif
+ display->buggy_pad_reflect = FALSE;
+ display->buggy_repeat = FALSE;
+