From: Holger Schemel Date: Wed, 12 Aug 2015 18:10:11 +0000 (+0200) Subject: changed initial busy animation position to screen center by default X-Git-Tag: 4.0.0.0-rc1~158 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=36fa3603cc9a33f0a15b5806a019045badd5a1fa;p=rocksndiamonds.git changed initial busy animation position to screen center by default --- 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);