mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 08:45:31 -05:00
Almost... :)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user