[gtk+/rendering-cleanup] Access background field member instead



commit 121ef45480ad1e3d6ee835cae98f0b33f48ef4e4
Author: Kristian Rietveld <kris gtk org>
Date:   Tue Sep 14 08:27:52 2010 +0200

    Access background field member instead

 gdk/quartz/gdkwindow-quartz.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 9c54276..43c4915 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -256,14 +256,14 @@ gdk_window_impl_quartz_begin_paint_region (GdkPaintable    *paintable,
   gdk_cairo_region (cr, clipped_and_offset_region);
   cairo_clip (cr);
 
-  while (private->pattern == NULL && private->parent)
+  while (private->background == NULL && private->parent)
     {
       cairo_translate (cr, -private->x, private->y);
       private = private->parent;
     }
   
-  if (private->pattern)
-    cairo_set_source (cr, private->pattern);
+  if (private->background)
+    cairo_set_source (cr, private->background);
   else
     cairo_set_source_rgba (cr, 0, 0, 0, 0);
 



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