added pumping events when waiting for screen redraw
[rocksndiamonds.git] / src / libgame / sdl.c
index 45f7f2ce69a823b9b4f635bb6a8c334765f87736..f18b97b47afee8a1db1fc0e380b7b178a2f4397f 100644 (file)
@@ -224,6 +224,8 @@ static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay)
 
 static void UpdateScreen_WithFrameDelay(SDL_Rect *rect)
 {
+  PumpEvents();                // execute event filter actions while waiting
+
   UpdateScreenExt(rect, TRUE);
 }
 
@@ -2362,7 +2364,7 @@ void SDLWaitEvent(Event *event)
   SDL_WaitEvent(event);
 }
 
-void SDLCorrectMouseEventXY(int *x, int *y)
+void SDLCorrectRawMousePosition(int *x, int *y)
 {
   if (sdl_renderer == NULL)
     return;