소스 검색

Fixed handling only one event per frame in test program.

Philipp Wiesemann 10 년 전
부모
커밋
1ed86d2211
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/testdrawchessboard.c

+ 1 - 1
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;