X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=dce249365e940efd5b1e9a43d6462904d31fe240;hb=157fb76461d332a22233e6664cd294d7db5d3558;hp=068057657818719405bc43dacc8646b6b435013a;hpb=263833763d867d5c2a329c98416adac0aadc0b8e;p=rocksndiamonds.git diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 06805765..dce24936 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -62,14 +62,18 @@ 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) gfx.draw_envelope_request_function(draw_target); + // 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); @@ -1459,7 +1463,7 @@ void SDLDrawLines(SDL_Surface *surface, struct XY *points, continue; sge_Line(surface, points[i].x + dx, points[i].y + dy, - points[i+1].x + dx, points[i+1].y + dy, color); + points[i + 1].x + dx, points[i + 1].y + dy, color); } } }