summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
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);