[gtk+/rendering-cleanup-next] xxx: quartz



commit d797faeb39fa959a4270ced2104171017193db98
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:22:10 2010 +0200

    xxx: quartz

 gdk/quartz/gdkdrawable-quartz.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gdk/quartz/gdkdrawable-quartz.c b/gdk/quartz/gdkdrawable-quartz.c
index 4dbce4b..8c6a141 100644
--- a/gdk/quartz/gdkdrawable-quartz.c
+++ b/gdk/quartz/gdkdrawable-quartz.c
@@ -94,11 +94,10 @@ gdk_quartz_ref_cairo_surface (GdkDrawable *drawable)
 
   if (!impl->cairo_surface)
     {
-      int width, height;
-
-      gdk_drawable_get_size (drawable, &width, &height);
-      impl->cairo_surface = gdk_quartz_create_cairo_surface (drawable,
-                                                             width, height);
+      impl->cairo_surface = 
+          gdk_quartz_create_cairo_surface (drawable,
+                                           gdk_window_get_width (impl->wrapper),
+                                           gdk_window_get_height (impl->wrapper));
     }
   else
     cairo_surface_reference (impl->cairo_surface);



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