Skip to content

Commit

Permalink
Almost... :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 29, 2002
1 parent b3efd8d commit da3b0a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/SDL_events.c
Expand Up @@ -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)
Expand Down

0 comments on commit da3b0a5

Please sign in to comment.