Mercurial > sdl-ios-xcode
comparison test/testgl.c @ 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 | 44e49d3fa6cf |
comparison
equal
deleted
inserted
replaced
2318:0c653886cce7 | 2319:5835745560bf |
---|---|
664 if (slowly) { | 664 if (slowly) { |
665 SDL_Delay(20); | 665 SDL_Delay(20); |
666 } | 666 } |
667 | 667 |
668 /* Check if there's a pending event. */ | 668 /* Check if there's a pending event. */ |
669 while (!done && SDL_PollEvent(&event)) { | 669 while (SDL_PollEvent(&event)) { |
670 done = HandleEvent(&event); | 670 done |= HandleEvent(&event); |
671 } | 671 } |
672 ++frames; | 672 ++frames; |
673 } | 673 } |
674 | 674 |
675 /* Print out the frames per second */ | 675 /* Print out the frames per second */ |