From 36fa3603cc9a33f0a15b5806a019045badd5a1fa Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 12 Aug 2015 20:10:11 +0200 Subject: [PATCH] changed initial busy animation position to screen center by default --- src/conf_gfx.c | 4 ++-- src/init.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/conf_gfx.c b/src/conf_gfx.c index f2ddadfd..589d89df 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -6129,8 +6129,8 @@ struct ConfigInfo image_config[] = { "border.draw_masked_when_fading", "true" }, - { "init.busy.x", "336" }, - { "init.busy.y", "280" }, + { "init.busy.x", "-1" }, + { "init.busy.y", "-1" }, { "init.busy.align", "center" }, { "init.busy.valign", "middle" }, diff --git a/src/init.c b/src/init.c index d206859a..3a2ccca2 100644 --- a/src/init.c +++ b/src/init.c @@ -102,6 +102,11 @@ void DrawInitAnim() if (!DelayReached(&action_delay, action_delay_value)) return; + if (init_last.busy.x == -1) + init_last.busy.x = WIN_XSIZE / 2; + if (init_last.busy.y == -1) + init_last.busy.y = WIN_YSIZE / 2; + x = ALIGNED_TEXT_XPOS(&init_last.busy); y = ALIGNED_TEXT_YPOS(&init_last.busy); -- 2.34.1