summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
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: