comparison src/events/SDL_events.c @ 383:5e31d8bfffcf

SDL_PushEvent() now returns values as documented.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 29 May 2002 22:29:46 +0000
parents d47637068e52
children 1870bb49ab18
comparison
equal deleted inserted replaced
382:74bdcae44bf5 383:5e31d8bfffcf
390 } 390 }
391 } 391 }
392 392
393 int SDL_PushEvent(SDL_Event *event) 393 int SDL_PushEvent(SDL_Event *event)
394 { 394 {
395 return(SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0)); 395 return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0);
396 } 396 }
397 397
398 void SDL_SetEventFilter (SDL_EventFilter filter) 398 void SDL_SetEventFilter (SDL_EventFilter filter)
399 { 399 {
400 SDL_Event bitbucket; 400 SDL_Event bitbucket;