From 0135813d97f3b8bbd810db3e83a63e720e35ef31 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 11 Feb 2010 21:55:12 +0100 Subject: Add to antialias the image (other keypad keys don't do this) --- src/keyevents.c | 9 ++++++--- src/options.c | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src') 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" " Move the image to the left\n" " Move the image to the right\n" +" Move the image up\n" +" Move the image down\n" +" Antialias the image\n" " Zoom in\n" " Zoom out\n" " Zoom to 100%%\n" -- cgit v1.2.3