From 6f9147c250b8a3034bb37036a19557be7f4f5b9f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Dec 14 2010 14:06:06 +0000 Subject: - Re-enable the buggy_gradients workaround, as using hardware gradients causes rendering issues and slowness when using the nvidia binary driver (#649955) --- diff --git a/cairo-1.10.0-buggy_gradients.patch b/cairo-1.10.0-buggy_gradients.patch new file mode 100644 index 0000000..a58c2f8 --- /dev/null +++ b/cairo-1.10.0-buggy_gradients.patch @@ -0,0 +1,17 @@ +http://repos.archlinux.org/wsvn/packages/cairo/trunk/cairo-1.10.0-buggy_gradients.patch +http://bugs.gentoo.org/336696 + +--- src/cairo-xlib-display.c ++++ src/cairo-xlib-display.c +@@ -353,11 +353,7 @@ + /* 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; + diff --git a/cairo.spec b/cairo.spec index 5ff85bc..1982bd2 100644 --- a/cairo.spec +++ b/cairo.spec @@ -5,10 +5,11 @@ Summary: A 2D graphics library Name: cairo Version: 1.10.0 -Release: 2%{?dist} +Release: 2%{?dist}.1 URL: http://cairographics.org Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.gz #Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz +Patch0: cairo-1.10.0-buggy_gradients.patch License: LGPLv2 or MPLv1.1 Group: System Environment/Libraries @@ -88,6 +89,7 @@ This package contains tools for working with the cairo graphics library. %prep %setup -q +%patch0 -p0 %build %configure --disable-static \ @@ -162,6 +164,11 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/cairo %changelog +* Tue Dec 14 2010 Hans de Goede - 1.10.0-2.fc14.1 +- Re-enable the buggy_gradients workaround, as using hardware gradients + causes rendering issues and slowness when using the nvidia binary + driver (#649955) + * Sat Oct 23 2010 Matthew Barnes - 1.10.0-2 - Fix Requires typo in cairo-gobject-devel (#641590).