mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
offscreenwindow: Get rid of gdk_drawable_get_size() usage
This commit is contained in:
parent
6eb6135e2d
commit
dca859dfa1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user