diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-01-15 20:35:51 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-01-15 20:35:51 -0500 |
commit | d43d705f4d0dceb503ee04a972929a9f61c85658 (patch) | |
tree | 9456d0ec8dc1af578576809e8066b4b1ea16314b /src | |
parent | 7a0efb1a7751b297bc10bdbe912538126101d517 (diff) | |
download | sok-d43d705f4d0dceb503ee04a972929a9f61c85658.tar.bz2 sok-d43d705f4d0dceb503ee04a972929a9f61c85658.zip |
minor ev cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl/main.c | 3 |
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 |