aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-26 14:42:10 +0100
committerBert <ber.t@gmx.com>2011-01-26 14:42:10 +0100
commit64a5366508142ad938e4a6f9f8bdb5f375b1336c (patch)
treef20b66d2e17c0db5107ff95f35bfb9c707f9866f /main.c
parentd2f9fb89e5517212ac92c00263b57df86c344ee7 (diff)
Added <,> mappings to rotate image
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9b7ed6b..039394c 100644
--- a/main.c
+++ b/main.c
@@ -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);