summaryrefslogtreecommitdiff
path: root/lzr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzr.c')
-rw-r--r--lzr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lzr.c b/lzr.c
index 1608cd6..153cfd8 100644
--- a/lzr.c
+++ b/lzr.c
@@ -471,6 +471,8 @@ bool LZR_PollEvent(LZR_Event *e)
_bind_menu();
if (se.key.keysym.scancode == SCODE_FULLSCREEN)
LZR_ToggleFullscreen();
+ if (se.key.keysym.scancode == SDL_SCANCODE_ESCAPE)
+ should_quit = true;
const int b = _scode_to_button(se.key.keysym.scancode);
if (se.key.repeat || b < 0)
break;