From 5f79070adb29e80f70763d4e37034c7e749a6817 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 2 Oct 2023 11:58:01 +0200 Subject: [PATCH] fixed drawing envelope request to be always on top of tile cursor --- src/libgame/sdl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 9ecc97fc..59fe7c3d 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -62,14 +62,14 @@ static void FinalizeScreen(int draw_target) if (gfx.draw_global_anim_function != NULL) gfx.draw_global_anim_function(draw_target, DRAW_GLOBAL_ANIM_STAGE_2); - // copy envelope request to render target buffer, if needed (above all) - if (gfx.draw_envelope_request_function != NULL) - gfx.draw_envelope_request_function(draw_target); - // copy tile selection cursor to render target buffer, if defined (above all) if (gfx.draw_tile_cursor_function != NULL) gfx.draw_tile_cursor_function(draw_target); + // copy envelope request to render target buffer, if needed (above all) + 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); -- 2.34.1