Fixed handling only one event per frame in test program.
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;