From d43d705f4d0dceb503ee04a972929a9f61c85658 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 15 Jan 2019 20:35:51 -0500 Subject: minor ev cleanup --- src/sdl/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3