Fixed handling only one event per frame in test program.

This commit is contained in:
Philipp Wiesemann committed 2015-05-18 21:12:16 +02:00
1 parent fcee3e734d
commit 1ed86d2211
1 file changed
+1 -1
+1 -1
View File
@@ -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;