The documented error return value for SDL_WaitEvent() is 0.

This commit is contained in:
Sam Lantinga
2002-04-15 04:53:41 +00:00
parent c95c828be1
commit ed21610f64

View File

@@ -383,7 +383,7 @@ int SDL_WaitEvent (SDL_Event *event)
while ( 1 ) {
SDL_PumpEvents();
switch(SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_ALLEVENTS)) {
case -1: return -1;
case -1: return 0;
case 1: return 1;
case 0: SDL_Delay(10);
}