[gnome-shell/wip/fmuellner/fix-content-height: 15/15] texture-cache: Apply resource scale to the right dimension
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/fix-content-height: 15/15] texture-cache: Apply resource scale to the right dimension
- Date: Tue, 12 Mar 2019 00:48:27 +0000 (UTC)
commit 9729a2e77213030fd73e4885de2eede6a22e3608
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 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]