texture-cache: Apply resource scale to the right dimension

Size matters!

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/444
This commit is contained in:
Florian Müllner 2019-03-06 21:39:42 +01:00 committed by Marco Trevisan
parent 6b924c00c5
commit 9729a2e772

View File

@ -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;