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)
|
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);
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user