From f8e68708adc7ca952ec78d62eff66965eed73230 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 Mar 2013 15:08:57 +0000 Subject: [PATCH] reinstate GDK/Quartz patch that avoids white backgrounds on first expose on OS X git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@14159 d708f5d6-7413-0410-9779-e7cbd77b26cf --- .../gdk-noclipwithemptyregion3.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tools/current-gtk-patches/gdk-noclipwithemptyregion3.patch diff --git a/tools/current-gtk-patches/gdk-noclipwithemptyregion3.patch b/tools/current-gtk-patches/gdk-noclipwithemptyregion3.patch new file mode 100644 index 0000000000..eb82c2b2f6 --- /dev/null +++ b/tools/current-gtk-patches/gdk-noclipwithemptyregion3.patch @@ -0,0 +1,14 @@ +--- a/gdk/quartz/gdkgc-quartz.c ++++ b/gdk/quartz/gdkgc-quartz.c +@@ -289,7 +289,10 @@ _gdk_windowing_gc_set_clip_region (GdkGC *gc, + private->have_clip_mask = FALSE; + } + +- private->have_clip_region = region != NULL; ++ if (region == NULL || gdk_region_empty (region)) ++ private->have_clip_region = FALSE; ++ else ++ private->have_clip_region = TRUE; + + if (reset_origin) + {