changeset 4460:363604b42e84

Make sure events are current before flushing them.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 09 May 2010 16:15:14 -0700
parents c0f2a1e6f0cd
children 39c22a953456
files src/events/SDL_events.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/events/SDL_events.c	Sun May 09 15:47:21 2010 -0700
+++ b/src/events/SDL_events.c	Sun May 09 16:15:14 2010 -0700
@@ -401,6 +401,9 @@
         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;