[SVN] r3553 - trunk/SDL/test
svn-owner at libsdl.org
svn-owner at libsdl.org
Fri Feb 22 21:10:41 PST 2008
Author: slouken
Date: 2008-02-22 21:10:40 -0800 (Fri, 22 Feb 2008)
New Revision: 3553
Modified:
trunk/SDL/test/testgl.c
Log:
Now the program will process all events and then terminate. :)
Modified: trunk/SDL/test/testgl.c
===================================================================
--- trunk/SDL/test/testgl.c 2008-02-20 23:27:33 UTC (rev 3552)
+++ trunk/SDL/test/testgl.c 2008-02-23 05:10:40 UTC (rev 3553)
@@ -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;
}
More information about the SVN
mailing list