Updated the documentation for the SDL_PushEvent() call.
authorSam Lantinga <slouken@libsdl.org>
Wed, 13 Feb 2002 23:40:13 +0000
changeset 2768af85680ca0a
parent 275 53fc686e9428
child 277 255c7ee077cb
Updated the documentation for the SDL_PushEvent() call.
include/SDL_events.h
src/events/SDL_events.c
     1.1 --- a/include/SDL_events.h	Wed Feb 13 18:21:48 2002 +0000
     1.2 +++ b/include/SDL_events.h	Wed Feb 13 23:40:13 2002 +0000
     1.3 @@ -274,8 +274,8 @@
     1.4  extern DECLSPEC int SDL_WaitEvent(SDL_Event *event);
     1.5  
     1.6  /* Add an event to the event queue.
     1.7 -   This function returns 0, or -1 if the event couldn't be added to
     1.8 -   the event queue.  If the event queue is full, this function fails.
     1.9 +   This function returns 0 if the event queue was full, or -1
    1.10 +   if there was some other error.  Returns 1 on success.
    1.11   */
    1.12  extern DECLSPEC int SDL_PushEvent(SDL_Event *event);
    1.13  
     2.1 --- a/src/events/SDL_events.c	Wed Feb 13 18:21:48 2002 +0000
     2.2 +++ b/src/events/SDL_events.c	Wed Feb 13 23:40:13 2002 +0000
     2.3 @@ -301,7 +301,7 @@
     2.4  
     2.5  	/* Don't look after we've quit */
     2.6  	if ( ! SDL_EventQ.active ) {
     2.7 -		return(0);
     2.8 +		return(-1);
     2.9  	}
    2.10  	/* Lock the event queue */
    2.11  	used = 0;