X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=096eeb709fdcd7e78441774bfd5d15564af1fae9;hb=89237f2f4d7189714da64da53c1515979ad49b2d;hp=068057657818719405bc43dacc8646b6b435013a;hpb=3da081ff7b11fa1f6af0abde72219622df5eb28a;p=rocksndiamonds.git diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 06805765..096eeb70 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -62,9 +62,9 @@ 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 tile selection cursor to render target buffer, if defined (above all) + // copy tile selection cursor to render target buffer, if defined (part 1) if (gfx.draw_tile_cursor_function != NULL) - gfx.draw_tile_cursor_function(draw_target); + gfx.draw_tile_cursor_function(draw_target, TRUE); // copy envelope request to render target buffer, if needed (above all) if (gfx.draw_envelope_request_function != NULL) @@ -73,6 +73,10 @@ static void FinalizeScreen(int 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); } static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay)