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.
This commit is contained in:
Kristian Rietveld 2012-10-04 09:06:01 +02:00 committed by Michael Natterer
parent b9575dddfd
commit 0e42cf81f1

View File

@ -97,7 +97,7 @@
*/
[NSGraphicsContext saveGraphicsState];
[[[self window] backgroundColor] setFill];
[[NSColor windowBackgroundColor] setFill];
[NSBezierPath fillRect:rect];
[NSGraphicsContext restoreGraphicsState];