src/events/SDL_events.c
changeset 276 8af85680ca0a
parent 252 e8157fcb3114
child 297 f6ffac90895c
equal deleted inserted replaced
275:53fc686e9428 276:8af85680ca0a
   299 {
   299 {
   300 	int i, used;
   300 	int i, used;
   301 
   301 
   302 	/* Don't look after we've quit */
   302 	/* Don't look after we've quit */
   303 	if ( ! SDL_EventQ.active ) {
   303 	if ( ! SDL_EventQ.active ) {
   304 		return(0);
   304 		return(-1);
   305 	}
   305 	}
   306 	/* Lock the event queue */
   306 	/* Lock the event queue */
   307 	used = 0;
   307 	used = 0;
   308 	if ( SDL_mutexP(SDL_EventQ.lock) == 0 ) {
   308 	if ( SDL_mutexP(SDL_EventQ.lock) == 0 ) {
   309 		if ( action == SDL_ADDEVENT ) {
   309 		if ( action == SDL_ADDEVENT ) {