summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-19 20:53:38 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-19 20:53:38 +0200
commite2ebaaa2cd997b553c772bafd082b5b2e69efeec (patch)
tree36712442f46497a6d0a8cfc5078d7e4c725b8646 /src/keyevents.c
parentadd9cfa1ae859e5f728a2ec3fd1d02586008dfe0 (diff)
Make <keypad /> and <keypad *> actually useful
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 67f5389..aa18d02 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -271,11 +271,13 @@ void feh_event_handle_keypress(XEvent * ev)
case XK_KP_Multiply:
len = 0;
winwid->zoom = 1;
+ winwidget_center_image(winwid);
winwidget_render_image(winwid, 0, 0);
break;
case XK_KP_Divide:
len = 0;
feh_calc_needed_zoom(&winwid->zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h);
+ winwidget_center_image(winwid);
winwidget_render_image(winwid, 0, 1);
break;
case XK_KP_Begin: