changed initial busy animation position to screen center by default
authorHolger Schemel <info@artsoft.org>
Wed, 12 Aug 2015 18:10:11 +0000 (20:10 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 12 Aug 2015 18:10:11 +0000 (20:10 +0200)
src/conf_gfx.c
src/init.c

index f2ddadfda4fcab17151e74edcf21c571183524c4..589d89df3df3a546578a3fa487563e82ccc1afcf 100644 (file)
@@ -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"                },
 
index d206859a5f6b0f962faf723a636cc8ed20c3d885..3a2ccca2a197faf55d116d37b1dcff09bd548ce3 100644 (file)
@@ -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);