[SDL] Pumping event queue causing screen update!

David Olofson david at olofson.net
Sat Mar 19 09:01:11 PST 2005


On Saturday 19 March 2005 11.26, Wayne Marsh wrote:
> Is this supposed to happen? How can I make it not happen? It seems a 
bit
> strange. Just a simple event queue clearing such as:
> 
> while (SDL_PollEvent(&event))
> {
> }
> 
> causes a screen update. This is undesirable.

That sounds pretty weird... I mean, if it's not your code doing 
something, where does the data come from?

What platform is this on?


//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---




More information about the SDL mailing list