From e2ebaaa2cd997b553c772bafd082b5b2e69efeec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Jun 2010 20:53:38 +0200 Subject: Make and actually useful --- src/keyevents.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/keyevents.c') 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: -- cgit v1.2.3