aboutsummaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-15 20:35:51 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-15 20:35:51 -0500
commitd43d705f4d0dceb503ee04a972929a9f61c85658 (patch)
tree9456d0ec8dc1af578576809e8066b4b1ea16314b /src/sdl
parent7a0efb1a7751b297bc10bdbe912538126101d517 (diff)
downloadsok-d43d705f4d0dceb503ee04a972929a9f61c85658.tar.bz2
sok-d43d705f4d0dceb503ee04a972929a9f61c85658.zip
minor ev cleanup
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