Now the program will process all events and then terminate. :)
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Feb 2008 05:10:40 +0000
changeset 23195835745560bf
parent 2318 0c653886cce7
child 2320 166400aa33d7
Now the program will process all events and then terminate. :)
test/testgl.c
     1.1 --- a/test/testgl.c	Wed Feb 20 23:27:33 2008 +0000
     1.2 +++ b/test/testgl.c	Sat Feb 23 05:10:40 2008 +0000
     1.3 @@ -666,8 +666,8 @@
     1.4          }
     1.5  
     1.6          /* Check if there's a pending event. */
     1.7 -        while (!done && SDL_PollEvent(&event)) {
     1.8 -            done = HandleEvent(&event);
     1.9 +        while (SDL_PollEvent(&event)) {
    1.10 +            done |= HandleEvent(&event);
    1.11          }
    1.12          ++frames;
    1.13      }