summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-10-23 17:14:56 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-10-23 17:15:56 +0200
commit590e085c7b2f2fa58c05b290a9b555324299b5c4 (patch)
tree77cfd17a41d8b888adecd38b48620e9da762a2be /src
parent3e9b5800c14650c0bc885d7f06498858f4b92e82 (diff)
Fix --scale-down for both tiling mode and floating mode.
Diffstat (limited to 'src')
-rw-r--r--src/winwidget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 480fe4e..26a43e2 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -387,6 +387,8 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
D(("scaling down image %dx%d\n", winwid->w, winwid->h));
feh_calc_needed_zoom(&(winwid->zoom), winwid->im_w, winwid->im_h, winwid->w, winwid->h);
+ if (resize)
+ winwidget_resize(winwid, winwid->im_w * winwid->zoom, winwid->im_h * winwid->zoom);
D(("after scaling down image %dx%d\n", winwid->w, winwid->h));
}