diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-02 16:51:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-02 16:51:41 +0200 |
commit | 45051738e96b6e15af68c9240bf96d541843d127 (patch) | |
tree | 5fec8321d91e459f3cbc5b2fcc2afd818e2e348e | |
parent | 4603eb42e6a1be2e9582f0a32c83683ac044b968 (diff) |
Sanitise image offsets after pressing kp - / kp +
-rw-r--r-- | src/keyevents.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 8937e91..3166e9a 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -261,11 +261,13 @@ void feh_event_handle_keypress(XEvent * ev) /* erroneously recognized as '+' in the *kbuf switch. Work around this. */ len = 0; winwid->zoom = winwid->zoom * 1.25; + winwidget_sanitise_offsets(winwid); winwidget_render_image(winwid, 0, 0); break; case XK_KP_Subtract: len = 0; winwid->zoom = winwid->zoom * 0.75; + winwidget_sanitise_offsets(winwid); winwidget_render_image(winwid, 0, 0); break; case XK_KP_Multiply: |