Skip to content
Permalink
Browse files

Almost... :)

  • Loading branch information
slouken committed May 29, 2002
1 parent b3efd8d commit da3b0a54dcdcfd75b8c9f64e7935c8aca8c2964d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/events/SDL_events.c
@@ -392,7 +392,9 @@ int SDL_WaitEvent (SDL_Event *event)

int SDL_PushEvent(SDL_Event *event)
{
return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0);
if ( SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) <= 0 )
return -1;
return 0;
}

void SDL_SetEventFilter (SDL_EventFilter filter)

0 comments on commit da3b0a5

Please sign in to comment.