aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.c b/main.c
index 440b9f1..e6f05c8 100644
--- a/main.c
+++ b/main.c
@@ -142,6 +142,19 @@ void on_keypress(XEvent *ev) {
update_title();
}
break;
+ case XK_plus:
+ case XK_equal:
+ if (img_zoom_in(&img)) {
+ img_render(&img, &win);
+ update_title();
+ }
+ break;
+ case XK_minus:
+ if (img_zoom_out(&img)) {
+ img_render(&img, &win);
+ update_title();
+ }
+ break;
}
}