summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-14 17:55:01 +0100
committerrbuj <[email protected]>2021-12-14 17:55:01 +0100
commit316b16c0f526f894546676902a3ff3075673aca0 (patch)
treeab2c87524b7caa602daddfedf585869bdc839731
parentaf8ed3f669480ed03b0b1e47acf58962b6184e43 (diff)
downloadmate-session-manager-implicit-int-float-conversion.tar.bz2
mate-session-manager-implicit-int-float-conversion.tar.xz
gsm-inhibit-dialog: Fix -Wimplicit-int-float-conversion warningsimplicit-int-float-conversion
-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,