quartz: Get rid of gdk_drawable_get_size() usage

This commit is contained in:
Benjamin Otte 2010-09-20 12:53:06 +02:00
parent e8e657725c
commit f44f35548d
2 changed files with 6 additions and 8 deletions

View File

@ -94,11 +94,10 @@ gdk_quartz_ref_cairo_surface (GdkDrawable *drawable)
if (!impl->cairo_surface) if (!impl->cairo_surface)
{ {
int width, height; impl->cairo_surface =
gdk_quartz_create_cairo_surface (drawable,
gdk_drawable_get_size (impl->wrapper, &width, &height); gdk_window_get_width (impl->wrapper),
impl->cairo_surface = gdk_quartz_create_cairo_surface (drawable, gdk_window_get_height (impl->wrapper));
width, height);
} }
else else
cairo_surface_reference (impl->cairo_surface); cairo_surface_reference (impl->cairo_surface);

View File

@ -1246,9 +1246,8 @@ move_resize_window_internal (GdkWindow *window,
old_visible.x = -private->x; old_visible.x = -private->x;
old_visible.y = -private->y; old_visible.y = -private->y;
gdk_drawable_get_size (GDK_DRAWABLE (private->parent), old_visible.width = private->width;
&old_visible.width, old_visible.height = private->height;
&old_visible.height);
} }
if (x != -1) if (x != -1)