summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-14 17:55:01 +0100
committermouse <[email protected]>2023-04-20 09:10:26 +0800
commit0c8e58a726346df8f5ba4da679feff1bc93bd9bf (patch)
treefd6cee3b3682fa5c89dc8a7d84f14097e2cc1f50
parent46f7c21f60c071643f333133bcfd37e1e73ee558 (diff)
downloadmate-session-manager-0c8e58a726346df8f5ba4da679feff1bc93bd9bf.tar.bz2
mate-session-manager-0c8e58a726346df8f5ba4da679feff1bc93bd9bf.tar.xz
gsm-inhibit-dialog: Fix -Wimplicit-int-float-conversion warnings
-rw-r--r--mate-session/gsm-inhibit-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mate-session/gsm-inhibit-dialog.c b/mate-session/gsm-inhibit-dialog.c
index f8f50e6..791a7b3 100644
--- a/mate-session/gsm-inhibit-dialog.c
+++ b/mate-session/gsm-inhibit-dialog.c
@@ -308,8 +308,8 @@ scale_pixbuf (GdkPixbuf *pixbuf,
/* always scale down, allow to disable scaling up */
if (scale_factor < 1.0 || !no_stretch_hint) {
- int scale_x = (int) (pw * scale_factor);
- int scale_y = (int) (ph * scale_factor);
+ int scale_x = (int) (scale_factor * (float) pw);
+ int scale_y = (int) (scale_factor * (float) ph);
g_debug ("Scaling to %dx%d", scale_x, scale_y);
return gdk_pixbuf_scale_simple (pixbuf,
scale_x,