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;
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user