diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-01-22 02:51:22 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-01-22 02:51:22 +0100 |
commit | d30a13d217fa290b82a8e3d3f7a298a7f7a7936c (patch) | |
tree | aea219c75f2d3d7ac801515fb7ad7ced56035328 /src | |
parent | 9d6fd252c3ef3c1eb42d8e722495a6b56eeddb70 (diff) |
Make in/out zoom use equal ratio, double image movement stepsize
Diffstat (limited to 'src')
-rw-r--r-- | src/keyevents.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 0b8b5fd..723cf1f 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -435,19 +435,19 @@ void feh_event_handle_keypress(XEvent * ev) slideshow_change_image(winwid, SLIDE_PREV); } else if (feh_is_kp(&keys.scroll_right, keysym, kev->state)) { - winwid->im_x -= 10; + winwid->im_x -= 20; winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.scroll_left, keysym, kev->state)) { - winwid->im_x += 10; + winwid->im_x += 20; winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.scroll_down, keysym, kev->state)) { - winwid->im_y -= 10; + winwid->im_y -= 20; winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.scroll_up, keysym, kev->state)) { - winwid->im_y += 10; + winwid->im_y += 20; winwidget_render_image(winwid, 0, 0); } else if (feh_is_kp(&keys.jump_back, keysym, kev->state)) { @@ -521,7 +521,7 @@ void feh_event_handle_keypress(XEvent * ev) } else if (feh_is_kp(&keys.zoom_out, keysym, kev->state)) { winwid->old_zoom = winwid->zoom; - winwid->zoom = winwid->zoom * 0.75; + winwid->zoom = winwid->zoom * 0.80; winwid->im_x = (winwid->w / 2) - (((winwid->w / 2) - winwid->im_x) / winwid->old_zoom * winwid->zoom); winwid->im_y = (winwid->h / 2) - (((winwid->h / 2) - winwid->im_y) / |