summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-11 21:55:12 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-11 21:55:12 +0100
commit0135813d97f3b8bbd810db3e83a63e720e35ef31 (patch)
treebd53cc986b066df6005c8390b252cf9f2036d525 /src
parentff030be3737d1f72be29f9e9f8940079a76c4afd (diff)
Add <keypad begin> to antialias the image (other keypad keys don't do this)
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c9
-rw-r--r--src/options.c3
2 files changed, 9 insertions, 3 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 376a33a..af7e173 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -304,15 +304,18 @@ feh_event_handle_keypress(XEvent * ev)
case XK_KP_Subtract:
winwid->zoom = winwid->zoom * 0.75;
winwidget_render_image(winwid, 0, 0);
- break;
+ break;
case XK_KP_Multiply:
winwid->zoom = 1;
winwidget_render_image(winwid, 0, 0);
- break;
+ break;
case XK_KP_Divide:
feh_calc_needed_zoom(&winwid->zoom, winwid->im_w, winwid->im_h, winwid->w, winwid->h);
winwidget_render_image(winwid, 0, 0);
- break;
+ break;
+ case XK_KP_Begin:
+ winwidget_render_image(winwid, 0, 1);
+ break;
default:
break;
}
diff --git a/src/options.c b/src/options.c
index 44fa3bf..9fb50ff 100644
--- a/src/options.c
+++ b/src/options.c
@@ -1123,6 +1123,9 @@ show_usage(void)
" q, Q Quit the slideshow\n"
" <KEYPAD LEFT> Move the image to the left\n"
" <KEYPAD RIGHT> Move the image to the right\n"
+" <KEYPAD UP> Move the image up\n"
+" <KEYPAD DOWN> Move the image down\n"
+" <KEYPAD BEGIN> Antialias the image\n"
" <KEYPAD +> Zoom in\n"
" <KEYPAD -> Zoom out\n"
" <KEYPAD *> Zoom to 100%%\n"