forked from AuroraMiddleware/gtk
quartz: Get rid of gdk_drawable_get_size() usage
This commit is contained in:
parent
e8e657725c
commit
f44f35548d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user