added video frame counter (currently not used)
[rocksndiamonds.git] / src / libgame / sdl.c
index 45f7f2ce69a823b9b4f635bb6a8c334765f87736..e13b6736e32999aec9e2574c7d3da7780dffe59c 100644 (file)
@@ -218,12 +218,16 @@ static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay)
   if (with_frame_delay)
     WaitUntilDelayReached(&video.frame_delay, video.frame_delay_value);
 
+  video.frame_counter++;
+
   // show render target buffer on screen
   SDL_RenderPresent(sdl_renderer);
 }
 
 static void UpdateScreen_WithFrameDelay(SDL_Rect *rect)
 {
+  PumpEvents();                // execute event filter actions while waiting
+
   UpdateScreenExt(rect, TRUE);
 }
 
@@ -2362,7 +2366,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;