win32: Get rid of gdk_drawable_get_size() usage

This commit is contained in:
Benjamin Otte 2010-09-20 12:53:32 +02:00
parent f44f35548d
commit 0a57863f73

View File

@ -1045,17 +1045,14 @@ _gdk_win32_cairo_region_to_string (const cairo_region_t *rgn)
gchar *
_gdk_win32_drawable_description (GdkDrawable *d)
{
gint width, height, depth;
g_return_val_if_fail (GDK_IS_DRAWABLE (d), NULL);
gdk_drawable_get_size (d, &width, &height);
depth = gdk_visual_get_depth (gdk_window_get_visual (GDK_WINDOW (d)));
return static_printf ("%s:%p:%dx%dx%d",
G_OBJECT_TYPE_NAME (d),
GDK_DRAWABLE_HANDLE (d),
width, height, depth);
gdk_window_get_width (GDK_WINDOW (d)),
gdk_window_get_height (GDK_WINDOW (d)),
gdk_visual_get_depth (gdk_window_get_visual (GDK_WINDOW (d))));
}
#endif /* G_ENABLE_DEBUG */