Commit 2a8171b8 authored by Sam Lantinga's avatar Sam Lantinga

Make sure events are current before flushing them.

parent 906341c8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment