fixed always drawing pointer-style global animations above everything else
authorHolger Schemel <info@artsoft.org>
Wed, 13 Dec 2023 16:15:08 +0000 (17:15 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 13 Dec 2023 16:15:08 +0000 (17:15 +0100)
src/libgame/sdl.c

index 096eeb709fdcd7e78441774bfd5d15564af1fae9..0b3ec7f623383a26e07efc560938295438ae74dc 100644 (file)
@@ -70,13 +70,13 @@ static void FinalizeScreen(int draw_target)
   if (gfx.draw_envelope_request_function != NULL)
     gfx.draw_envelope_request_function(draw_target);
 
-  // copy global animations to render target buffer, if defined (mouse pointer)
-  if (gfx.draw_global_anim_function != NULL)
-    gfx.draw_global_anim_function(draw_target, DRAW_GLOBAL_ANIM_STAGE_3);
-
   // copy tile selection cursor to render target buffer, if defined (part 2)
   if (gfx.draw_tile_cursor_function != NULL)
     gfx.draw_tile_cursor_function(draw_target, FALSE);
+
+  // copy global animations to render target buffer, if defined (mouse pointer)
+  if (gfx.draw_global_anim_function != NULL)
+    gfx.draw_global_anim_function(draw_target, DRAW_GLOBAL_ANIM_STAGE_3);
 }
 
 static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay)