diff options
author | Kristian Rietveld <kris@lanedo.com> | 2012-10-04 09:06:01 +0200 |
---|---|---|
committer | Michael Natterer <mitch@gimp.org> | 2012-10-09 16:19:29 +0200 |
commit | c7ce4b6b3d39b18902ec8b5b5ef13b8403836392 (patch) | |
tree | 4a3201740c6765758b3b485fb2ac1ced292e6055 /gdk | |
parent | e09cf6978e762d3a3c6d5b4fcf0a2124a99bc8f7 (diff) | |
download | gtk+-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.c | 2 |
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]; |