From: Holger Schemel Date: Sat, 12 Mar 2022 16:01:26 +0000 (+0100) Subject: added reading settings for busy animation from custom artwork config X-Git-Tag: 4.3.2.0~80 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7d6371b626a62594233de7deb9ff95cfdc75602d;p=rocksndiamonds.git added reading settings for busy animation from custom artwork config --- diff --git a/src/init.c b/src/init.c index 020b4d1d..66ba68ac 100644 --- a/src/init.c +++ b/src/init.c @@ -5600,6 +5600,8 @@ static void InitGfx(void) DrawInitTextHead("Loading graphics"); + InitMenuDesignSettings_Static(); + // initialize settings for busy animation with default values int parameter[NUM_GFX_ARGS]; for (i = 0; i < NUM_GFX_ARGS; i++) @@ -5641,6 +5643,9 @@ static void InitGfx(void) } } + // read values from custom graphics config file + InitMenuDesignSettings_FromHash(setup_file_hash, FALSE); + freeSetupFileHash(setup_file_hash); } } @@ -5688,8 +5693,6 @@ static void InitGfx(void) init.busy.width = anim_initial.width; init.busy.height = anim_initial.height; - InitMenuDesignSettings_Static(); - InitGfxDrawBusyAnimFunction(DrawInitAnim); InitGfxDrawGlobalAnimFunction(DrawGlobalAnimations); InitGfxDrawGlobalBorderFunction(DrawMaskedBorderToTarget);