Make sure events are current before flushing them.
This commit is contained in:
parent
906341c826
commit
2a8171b8b7
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue