Mercurial > sdl-ios-xcode
diff src/events/SDL_events.c @ 384:1870bb49ab18
Almost... :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 29 May 2002 23:31:33 +0000 |
parents | 5e31d8bfffcf |
children | b8d311d90021 |
line wrap: on
line diff
--- a/src/events/SDL_events.c Wed May 29 22:29:46 2002 +0000 +++ b/src/events/SDL_events.c Wed May 29 23:31:33 2002 +0000 @@ -392,7 +392,9 @@ 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)