Fixed handling only one event per frame in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 18 May 2015 21:12:16 +0200
changeset 9605be71aef6c347
parent 9604 b8d8f9674717
child 9606 ec24a5add229
Fixed handling only one event per frame in test program.
test/testdrawchessboard.c
     1.1 --- a/test/testdrawchessboard.c	Sat May 16 17:35:36 2015 -0300
     1.2 +++ b/test/testdrawchessboard.c	Mon May 18 21:12:16 2015 +0200
     1.3 @@ -59,7 +59,7 @@
     1.4  loop()
     1.5  {
     1.6      SDL_Event e;
     1.7 -	if (SDL_PollEvent(&e)) {
     1.8 +    while (SDL_PollEvent(&e)) {
     1.9  		if (e.type == SDL_QUIT) {
    1.10  			done = 1;
    1.11  			return;