Almost... :)
authorSam Lantinga <slouken@libsdl.org>
Wed, 29 May 2002 23:31:33 +0000
changeset 3841870bb49ab18
parent 383 5e31d8bfffcf
child 385 daa944f00154
Almost... :)
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Wed May 29 22:29:46 2002 +0000
     1.2 +++ b/src/events/SDL_events.c	Wed May 29 23:31:33 2002 +0000
     1.3 @@ -392,7 +392,9 @@
     1.4  
     1.5  int SDL_PushEvent(SDL_Event *event)
     1.6  {
     1.7 -	return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0);
     1.8 +	if ( SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) <= 0 )
     1.9 +		return -1;
    1.10 +	return 0;
    1.11  }
    1.12  
    1.13  void SDL_SetEventFilter (SDL_EventFilter filter)