diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c index f865e32b89..d2c142ae43 100644 --- a/gdk/gdkpixbuf-drawable.c +++ b/gdk/gdkpixbuf-drawable.c @@ -97,7 +97,7 @@ gdk_pixbuf_get_from_window (GdkWindow *src, 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); + scale = gdk_window_get_scale_factor (src); /* We do not know what happened to this surface outside of GDK. * Especially for foreign windows, they will have been modified