add patch for Cairo when used on some older nvidia drivers that don't draw gradients correctly. it doesn't fix the problem but allows a user to set FORCE_BUGGY_GRADIENTS in their environment and that will fix it at run time

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12375 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-05-22 11:30:38 +00:00
parent 00ebb6a2dc
commit 990fd441d9
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
--- src/cairo-xlib-display.c 2010-09-09 10:56:24.000000000 -0500
+++ ../../Current/cairo-1.10.2/src/cairo-xlib-display.c 2011-11-16 11:19:08.000000000 -0600
@@ -356,7 +356,12 @@
#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
display->buggy_gradients = TRUE;
#else
- display->buggy_gradients = FALSE;
+ if (getenv ("FORCE_BUGGY_GRADIENTS")) {
+ display->buggy_gradients = TRUE;
+ }
+ else {
+ display->buggy_gradients = FALSE;
+ }
#endif
display->buggy_pad_reflect = FALSE;
display->buggy_repeat = FALSE;