The documented error return value for SDL_WaitEvent() is 0.
authorSam Lantinga <slouken@libsdl.org>
Mon, 15 Apr 2002 04:53:41 +0000
changeset 353d47637068e52
parent 352 b49fc922e7f6
child 354 30935e76acb5
The documented error return value for SDL_WaitEvent() is 0.
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Mon Apr 15 04:51:26 2002 +0000
     1.2 +++ b/src/events/SDL_events.c	Mon Apr 15 04:53:41 2002 +0000
     1.3 @@ -383,7 +383,7 @@
     1.4  	while ( 1 ) {
     1.5  		SDL_PumpEvents();
     1.6  		switch(SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_ALLEVENTS)) {
     1.7 -		    case -1: return -1; 
     1.8 +		    case -1: return 0;
     1.9  		    case 1: return 1;
    1.10  		    case 0: SDL_Delay(10);
    1.11  		}