summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-02 16:51:41 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-02 16:51:41 +0200
commit45051738e96b6e15af68c9240bf96d541843d127 (patch)
tree5fec8321d91e459f3cbc5b2fcc2afd818e2e348e /src
parent4603eb42e6a1be2e9582f0a32c83683ac044b968 (diff)
Sanitise image offsets after pressing kp - / kp +
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c2
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: