[gtk+] Fix previous commit



commit 00102e35ea09c3b6bce7227aaaa1aba37eae11ae
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Dec 16 12:41:16 2015 +0000

    Fix previous commit
    
    The scale parameter was missing.

 gdk/gdkpixbuf-drawable.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index 2f780a5..f865e32 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]