aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2010-11-22 03:43:40 +0800
committermarcus <marcus@FreeBSD.org>2010-11-22 03:43:40 +0800
commit1662cc7220845d2422c5e3e28bbe857435791e68 (patch)
tree82470e85d269e48be15c7aa239db852133ac9479 /graphics
parent3108016ff1fb88c87ac7039098537cc9b3775e3c (diff)
downloadfreebsd-ports-gnome-1662cc7220845d2422c5e3e28bbe857435791e68.tar.gz
freebsd-ports-gnome-1662cc7220845d2422c5e3e28bbe857435791e68.tar.zst
freebsd-ports-gnome-1662cc7220845d2422c5e3e28bbe857435791e68.zip
Add a patch from Ubuntu to fix gradient rendering problems resulting in
ugly displays, bad performance, etc. Reported by: many Obtained from: http://repos.archlinux.org/wsvn/packages/cairo/trunk/cairo-1.10.0-buggy_gradients.patch
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cairo/Makefile2
-rw-r--r--graphics/cairo/files/patch-src_cairo-xlib-display.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile
index ddc7f2b1809e..8ca724496e08 100644
--- a/graphics/cairo/Makefile
+++ b/graphics/cairo/Makefile
@@ -8,7 +8,7 @@
PORTNAME= cairo
PORTVERSION= 1.10.0
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH?= 1
CATEGORIES= graphics
MASTER_SITES= http://cairographics.org/releases/
diff --git a/graphics/cairo/files/patch-src_cairo-xlib-display.c b/graphics/cairo/files/patch-src_cairo-xlib-display.c
new file mode 100644
index 000000000000..fce8103adfc1
--- /dev/null
+++ b/graphics/cairo/files/patch-src_cairo-xlib-display.c
@@ -0,0 +1,14 @@
+--- src/cairo-xlib-display.c.orig 2010-11-21 14:41:31.000000000 -0500
++++ src/cairo-xlib-display.c 2010-11-21 14:42:12.000000000 -0500
+@@ -353,11 +353,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;
+