[SDL] SDL_QUIT problem

pvwr at sympatico.ca pvwr at sympatico.ca
Fri Sep 12 08:17:01 PDT 2003


> You need to check the return value of SDL_PollEvent(), when there are no
> events you'll get whatever happened to be on the stack in the event variable.
> 
> It should be:
> 	while ( SDL_PollEvent(&event) ) {
> 		switch(event.type) {
> 		}
> 	}

   O_O

   Thanks Sam, I will try it later at home (I'm at work now). This bug haunted me for about a week, hopefully I'll get it right now :).

   Paulo





More information about the SDL mailing list