summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,