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)
{
int width, height;
gdk_drawable_get_size (impl->wrapper, &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);

View File

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