aboutsummaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sdl/main.c b/src/sdl/main.c
index 28da951..ca0574d 100644
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
@@ -164,8 +164,9 @@ int main(int argc, char *argv[]) {
bool is_fullscreen = false;
bool done = false;
- SDL_Event ev;
while (!done) {
+ SDL_Event ev;
+
// read events
while (SDL_PollEvent(&ev)) {
// get action