changeset 2319:5835745560bf

Now the program will process all events and then terminate. :)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 Feb 2008 05:10:40 +0000
parents 0c653886cce7
children 166400aa33d7
files test/testgl.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/testgl.c	Wed Feb 20 23:27:33 2008 +0000
+++ b/test/testgl.c	Sat Feb 23 05:10:40 2008 +0000
@@ -666,8 +666,8 @@
         }
 
         /* Check if there's a pending event. */
-        while (!done && SDL_PollEvent(&event)) {
-            done = HandleEvent(&event);
+        while (SDL_PollEvent(&event)) {
+            done |= HandleEvent(&event);
         }
         ++frames;
     }