mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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 0e42cf81f1
)
This commit is contained in:
parent
e09cf6978e
commit
c7ce4b6b3d
@ -92,7 +92,7 @@
|
|||||||
*/
|
*/
|
||||||
[NSGraphicsContext saveGraphicsState];
|
[NSGraphicsContext saveGraphicsState];
|
||||||
|
|
||||||
[[[self window] backgroundColor] setFill];
|
[[NSColor windowBackgroundColor] setFill];
|
||||||
[NSBezierPath fillRect:rect];
|
[NSBezierPath fillRect:rect];
|
||||||
|
|
||||||
[NSGraphicsContext restoreGraphicsState];
|
[NSGraphicsContext restoreGraphicsState];
|
||||||
|
Loading…
Reference in New Issue
Block a user