diff options
author | Bert <ber.t@gmx.com> | 2011-01-26 14:42:10 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-26 14:42:10 +0100 |
commit | 64a5366508142ad938e4a6f9f8bdb5f375b1336c (patch) | |
tree | f20b66d2e17c0db5107ff95f35bfb9c707f9866f /main.c | |
parent | d2f9fb89e5517212ac92c00263b57df86c344ee7 (diff) |
Added <,> mappings to rotate image
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -219,6 +219,14 @@ void on_keypress(XEvent *ev) { changed = img_pan(&img, &win, PAN_RIGHT); break; + /* rotation */ + case '<': + changed = img_rotate_left(&img, &win); + break; + case '>': + changed = img_rotate_right(&img, &win); + break; + /* Control window */ case 'f': win_toggle_fullscreen(&win); |