summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorKristian Rietveld <kris@lanedo.com>2012-10-04 09:06:01 +0200
committerMichael Natterer <mitch@gimp.org>2012-10-09 16:19:29 +0200
commitc7ce4b6b3d39b18902ec8b5b5ef13b8403836392 (patch)
tree4a3201740c6765758b3b485fb2ac1ced292e6055 /gdk
parente09cf6978e762d3a3c6d5b4fcf0a2124a99bc8f7 (diff)
downloadgtk+-c7ce4b6b3d39b18902ec8b5b5ef13b8403836392.tar.gz
quartz: Actually use the window background PATTERN color
Before we used a window's background color, which resulted in corrupted display in some cases, presumably because we didn't reset the active pattern. This patch seems to eliminate the observed corruption. (cherry picked from commit 0e42cf81f1dad319489e447c6c4e640bed2ab915)
Diffstat (limited to 'gdk')
-rw-r--r--gdk/quartz/GdkQuartzView.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c
index 4955347710..0b59119f2b 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -92,7 +92,7 @@
*/
[NSGraphicsContext saveGraphicsState];
- [[[self window] backgroundColor] setFill];
+ [[NSColor windowBackgroundColor] setFill];
[NSBezierPath fillRect:rect];
[NSGraphicsContext restoreGraphicsState];