Commit dca859df authored by Benjamin Otte's avatar Benjamin Otte

offscreenwindow: Get rid of gdk_drawable_get_size() usage

parent 6eb6135e
......@@ -316,13 +316,10 @@ gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen)
if (surface != NULL)
gint width, height;
gdk_drawable_get_size (window, &width, &height);
pixbuf = gdk_pixbuf_get_from_surface (NULL, surface,
0, 0, 0, 0,
width, height);
gdk_window_get_width (window),
gdk_window_get_height (window));
return pixbuf;
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