[gnome-shell/wip/fmuellner/fix-content-height] texture-cache: Apply resource scale to the right dimension



commit df7b4d732e813b0efe8e761fe1f4e12ec434442d
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 6 21:39:42 2019 +0100

    texture-cache: Apply resource scale to the right dimension
    
    Size matters!
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/444

 src/st/st-texture-cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index a9688ec60..43507267b 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -502,7 +502,7 @@ pixbuf_to_st_content_image (GdkPixbuf *pixbuf,
     width *= paint_scale;
 
   if (height < 0)
-    height = ceilf (gdk_pixbuf_get_width (pixbuf) / resource_scale);
+    height = ceilf (gdk_pixbuf_get_height (pixbuf) / resource_scale);
   else
     height *= paint_scale;
 


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