[gtk+] quartz: Actually use the window background PATTERN color



commit c7ce4b6b3d39b18902ec8b5b5ef13b8403836392
Author: Kristian Rietveld <kris lanedo com>
Date:   Thu Oct 4 09:06:01 2012 +0200

    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)

 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 4955347..0b59119 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];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]