From 7d6371b626a62594233de7deb9ff95cfdc75602d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 12 Mar 2022 17:01:26 +0100 Subject: [PATCH] added reading settings for busy animation from custom artwork config --- src/init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.34.1