diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 83f63e0..9d889f2 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -31,7 +31,7 @@ void loop(Renderer& renderer) { | |||
31 | 31 | ||
32 | SDL_Event e; | 32 | SDL_Event e; |
33 | while (SDL_PollEvent(&e)) { | 33 | while (SDL_PollEvent(&e)) { |
34 | if (e.type == SDL_QUIT) { | 34 | if (e.type == SDL_QUIT || (e.type == SDL_KEYDOWN && e.key.keysym.sym == SDLK_ESCAPE)) { |
35 | return; | 35 | return; |
36 | } | 36 | } |
37 | } | 37 | } |