Skip to content
Snippets Groups Projects
Commit 45051738 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Sanitise image offsets after pressing kp - / kp +

parent 4603eb42
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment