Almost... :)

This commit is contained in:
Sam Lantinga
2002-05-29 23:31:33 +00:00
parent a224e80806
commit 2e25853bfe

View File

@@ -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)