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:
parent
6b924c00c5
commit
9729a2e772
@ -502,7 +502,7 @@ pixbuf_to_st_content_image (GdkPixbuf *pixbuf,
|
|||||||
width *= paint_scale;
|
width *= paint_scale;
|
||||||
|
|
||||||
if (height < 0)
|
if (height < 0)
|
||||||
height = ceilf (gdk_pixbuf_get_width (pixbuf) / resource_scale);
|
height = ceilf (gdk_pixbuf_get_height (pixbuf) / resource_scale);
|
||||||
else
|
else
|
||||||
height *= paint_scale;
|
height *= paint_scale;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user