Fixed handling only one event per frame in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 18 May 2015 21:12:16 +0200
changeset 9605 be71aef6c347
parent 9604 b8d8f9674717
child 9606 ec24a5add229
Fixed handling only one event per frame in test program.
test/testdrawchessboard.c
--- a/test/testdrawchessboard.c	Sat May 16 17:35:36 2015 -0300
+++ b/test/testdrawchessboard.c	Mon May 18 21:12:16 2015 +0200
@@ -59,7 +59,7 @@
 loop()
 {
     SDL_Event e;
-	if (SDL_PollEvent(&e)) {
+    while (SDL_PollEvent(&e)) {
 		if (e.type == SDL_QUIT) {
 			done = 1;
 			return;