summaryrefslogtreecommitdiff
path: root/test/testdrawchessboard.c
diff options
context:
space:
mode:
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>2015-05-18 21:12:16 +0200
committerPhilipp Wiesemann <philipp.wiesemann@arcor.de>2015-05-18 21:12:16 +0200
commitb775a91559d99f1d73956f7caf3eae36a127e12c (patch)
treec68c77d7afb50e6d3182410fd1f140156e839973 /test/testdrawchessboard.c
parenteb9dc184aae2bdad101efa9620972fc8c98bd910 (diff)
downloadsdl-b775a91559d99f1d73956f7caf3eae36a127e12c.tar.gz
Fixed handling only one event per frame in test program.
Diffstat (limited to 'test/testdrawchessboard.c')
-rw-r--r--test/testdrawchessboard.c2
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;