Skip to content

Commit

Permalink
The documented error return value for SDL_WaitEvent() is 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 15, 2002
1 parent c930dac commit 7c1fa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c1fa60

Please sign in to comment.