From 1ed86d22119fd408831f8fe55820e8c109fc1a65 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Mon, 18 May 2015 21:12:16 +0200 Subject: [PATCH] Fixed handling only one event per frame in test program. --- test/testdrawchessboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testdrawchessboard.c b/test/testdrawchessboard.c index 3272f5aebf675..35cc6884b1185 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;