projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5b701
)
changed initial busy animation position to screen center by default
author
Holger Schemel
<info@artsoft.org>
Wed, 12 Aug 2015 18:10:11 +0000
(20:10 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 12 Aug 2015 18:10:11 +0000
(20:10 +0200)
src/conf_gfx.c
patch
|
blob
|
history
src/init.c
patch
|
blob
|
history
diff --git
a/src/conf_gfx.c
b/src/conf_gfx.c
index f2ddadfda4fcab17151e74edcf21c571183524c4..589d89df3df3a546578a3fa487563e82ccc1afcf 100644
(file)
--- 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 d206859a5f6b0f962faf723a636cc8ed20c3d885..3a2ccca2a197faf55d116d37b1dcff09bd548ce3 100644
(file)
--- 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);