SDL_PushEvent() now returns values as documented.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 29 May 2002 22:29:46 +0000
changeset 3835e31d8bfffcf
parent 382 74bdcae44bf5
child 384 1870bb49ab18
SDL_PushEvent() now returns values as documented.
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Wed May 29 20:47:19 2002 +0000
     1.2 +++ b/src/events/SDL_events.c	Wed May 29 22:29:46 2002 +0000
     1.3 @@ -392,7 +392,7 @@
     1.4  
     1.5  int SDL_PushEvent(SDL_Event *event)
     1.6  {
     1.7 -	return(SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0));
     1.8 +	return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0);
     1.9  }
    1.10  
    1.11  void SDL_SetEventFilter (SDL_EventFilter filter)