From: Holger Schemel Date: Wed, 13 Dec 2023 16:15:08 +0000 (+0100) Subject: fixed always drawing pointer-style global animations above everything else X-Git-Tag: 4.3.8.1~3 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b08a9452f891ea0132aca72b79abead3f7784d1c;p=rocksndiamonds.git fixed always drawing pointer-style global animations above everything else --- diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 096eeb70..0b3ec7f6 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -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)