mirror of
https://github.com/yawut/SDL.git
synced 2026-09-12 19:16:42 -05:00
Make sure events are current before flushing them.
This commit is contained in:
@@ -401,6 +401,9 @@ SDL_FlushEvents(Uint32 minType, Uint32 maxType)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Make sure the events are current */
|
||||
SDL_PumpEvents();
|
||||
|
||||
/* Lock the event queue */
|
||||
if (SDL_mutexP(SDL_EventQ.lock) == 0) {
|
||||
int spot = SDL_EventQ.head;
|
||||
|
||||
Reference in New Issue
Block a user