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;