From 316b16c0f526f894546676902a3ff3075673aca0 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 14 Dec 2021 17:55:01 +0100 Subject: gsm-inhibit-dialog: Fix -Wimplicit-int-float-conversion warnings --- mate-session/gsm-inhibit-dialog.c | 4 ++-- 1 file 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, -- cgit v1.2.1