mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Fix previous commit
The scale parameter was missing.
This commit is contained in:
parent
1f07625705
commit
00102e35ea
@ -91,11 +91,13 @@ gdk_pixbuf_get_from_window (GdkWindow *src,
|
||||
cairo_surface_t *copy;
|
||||
cairo_t *cr;
|
||||
GdkPixbuf *dest;
|
||||
int scale;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (src), NULL);
|
||||
g_return_val_if_fail (gdk_window_is_viewable (src), NULL);
|
||||
|
||||
surface = _gdk_window_ref_cairo_surface (src);
|
||||
scale = gdk_window_get_scale_factor (window);
|
||||
|
||||
/* We do not know what happened to this surface outside of GDK.
|
||||
* Especially for foreign windows, they will have been modified
|
||||
|
Loading…
Reference in New Issue
Block a user