From 9729a2e77213030fd73e4885de2eede6a22e3608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 6 Mar 2019 21:39:42 +0100 Subject: [PATCH] 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 61f76accc..cbe3afaba 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;