Commit f44f3554 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

quartz: Get rid of gdk_drawable_get_size() usage

parent e8e65772
......@@ -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);
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment