From: Holger Schemel Date: Mon, 2 Oct 2023 09:58:01 +0000 (+0200) Subject: fixed drawing envelope request to be always on top of tile cursor X-Git-Tag: 4.3.7.0~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5f79070adb29e80f70763d4e37034c7e749a6817;hp=21e33411cb221de827be347312ad67c59b7d5a95;p=rocksndiamonds.git fixed drawing envelope request to be always on top of tile cursor --- 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);