# HG changeset patch # User Sam Lantinga # Date 1203743440 0 # Node ID 5835745560bfba01ed3b8bb7dcc27096d7185fee # Parent 0c653886cce7c877713aeae5ad8497a0e82b34d3 Now the program will process all events and then terminate. :) diff -r 0c653886cce7 -r 5835745560bf test/testgl.c --- 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; }