aboutsummaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/action.c4
-rw-r--r--src/sdl/log-renderer-info.c1
-rw-r--r--src/sdl/main.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/sdl/action.c b/src/sdl/action.c
index 84f415a..72b6fb2 100644
--- a/src/sdl/action.c
+++ b/src/sdl/action.c
@@ -68,6 +68,10 @@ get_key_action(
return (action_t) { .type = ACTION_RESET };
case SDLK_s:
return (action_t) { .type = ACTION_SOLVE };
+ case SDLK_EQUALS:
+ return (action_t) { .type = ACTION_ZOOM_IN, .data = 1 };
+ case SDLK_MINUS:
+ return (action_t) { .type = ACTION_ZOOM_OUT, .data = -1 };
default:
return (action_t) { .type = ACTION_NONE };
}
diff --git a/src/sdl/log-renderer-info.c b/src/sdl/log-renderer-info.c
index 3e05307..9ff2ef8 100644
--- a/src/sdl/log-renderer-info.c
+++ b/src/sdl/log-renderer-info.c
@@ -31,4 +31,3 @@ log_renderer_info(
info.num_texture_formats
);
}
-
diff --git a/src/sdl/main.c b/src/sdl/main.c
index 43dcdcc..b228788 100644
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
@@ -225,7 +225,7 @@ int main(int argc, char *argv[]) {
break;
case ACTION_ZOOM_IN:
- if (zoom < 10) {
+ if (zoom < 30) {
zoom++;
}