summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-09-27 18:36:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2010-09-27 18:36:15 +0200
commitb12763e7d576eda6e570d1726cb426b80f8d0f30 (patch)
tree5025aae9ff1f6de8a517467fbf22046192547320
parentc2ad802b1f647740fbf3b597de73d071404a5432 (diff)
winwidget.c: Do draw zoom info while zooming.
-rw-r--r--src/winwidget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index bf7b989..480fe4e 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -531,6 +531,7 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
sh, dx, dy,
dw, dh, 1,
gib_imlib_image_has_alpha(winwid->im), alias);
+
if (opt.mode == MODE_NORMAL) {
if (opt.caption_path)
winwidget_update_caption(winwid);
@@ -538,11 +539,11 @@ void winwidget_render_image(winwidget winwid, int resize, int alias)
feh_draw_filename(winwid);
if (opt.draw_actions)
feh_draw_actions(winwid);
- if ((opt.mode == MODE_ZOOM) && !alias)
- feh_draw_zoom(winwid);
if (opt.info_cmd)
feh_draw_info(winwid);
- }
+ } else if ((opt.mode == MODE_ZOOM) && !alias)
+ feh_draw_zoom(winwid);
+
XSetWindowBackgroundPixmap(disp, winwid->win, winwid->bg_pmap);
XClearWindow(disp, winwid->win);
return;