diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2015-05-18 21:12:16 +0200 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2015-05-18 21:12:16 +0200 |
commit | b775a91559d99f1d73956f7caf3eae36a127e12c (patch) | |
tree | c68c77d7afb50e6d3182410fd1f140156e839973 /test/testdrawchessboard.c | |
parent | eb9dc184aae2bdad101efa9620972fc8c98bd910 (diff) | |
download | sdl-b775a91559d99f1d73956f7caf3eae36a127e12c.tar.gz |
Fixed handling only one event per frame in test program.
Diffstat (limited to 'test/testdrawchessboard.c')
-rw-r--r-- | test/testdrawchessboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c index 3272f5aeb..35cc6884b 100644 --- a/test/testdrawchessboard.c +++ b/test/testdrawchessboard.c @@ -59,7 +59,7 @@ void loop() { SDL_Event e; - if (SDL_PollEvent(&e)) { + while (SDL_PollEvent(&e)) { if (e.type == SDL_QUIT) { done = 1; return; |