X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Finit.c;h=943839edba5acecd02e708e51bce2e444158806a;hp=30ff6b9b31f8975c781a3a30b5654eb91f5e5b79;hb=2178db0a0652bc87717aa1a55c888258ad6701e5;hpb=cbab48e3ea7c2821978dccb4f299e81e9c567050 diff --git a/src/init.c b/src/init.c index 30ff6b9b..943839ed 100644 --- a/src/init.c +++ b/src/init.c @@ -4666,7 +4666,7 @@ static void InitGlobal() global.frames_per_second = 0; - global.border_status = GAME_MODE_MAIN; + global.border_status = GAME_MODE_LOADING; global.anim_status = global.anim_status_next = GAME_MODE_LOADING; global.use_envelope_request = FALSE; @@ -5323,7 +5323,11 @@ void InitGfx() InitGfxDrawBusyAnimFunction(DrawInitAnim); InitGfxDrawGlobalAnimFunction(DrawGlobalAnim); - InitGfxDrawGlobalBorderFunction(DrawMaskedBorderToScreen); + InitGfxDrawGlobalBorderFunction(DrawMaskedBorderToTarget); + + gfx.fade_border_source_status = global.border_status; + gfx.fade_border_target_status = global.border_status; + gfx.masked_border_bitmap_ptr = backbuffer; /* use copy of busy animation to prevent change while reloading artwork */ init_last = init;