Browse Source

Fixed handling only one event per frame in test program.

Philipp Wiesemann 10 years ago
parent
commit
1ed86d2211
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testdrawchessboard.c

+ 1 - 1
test/testdrawchessboard.c

@@ -59,7 +59,7 @@ void
 loop()
 loop()
 {
 {
     SDL_Event e;
     SDL_Event e;
-	if (SDL_PollEvent(&e)) {
+    while (SDL_PollEvent(&e)) {
 		if (e.type == SDL_QUIT) {
 		if (e.type == SDL_QUIT) {
 			done = 1;
 			done = 1;
 			return;
 			return;