[gtk+/gtk-2-24] quartz: Actually use the window background PATTERN color



commit 0e42cf81f1dad319489e447c6c4e640bed2ab915
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.

 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 2a75da9..77ff5d7 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -97,7 +97,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]