Commit 1ed86d22119fd408831f8fe55820e8c109fc1a65

Philipp Wiesemann 2015-05-18T21:12:16

Fixed handling only one event per frame in test program.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c
index 3272f5a..35cc688 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;