summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-13 19:50:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-13 19:50:43 +0200
commit300548747eac805a7703a7f6a443d7afabf5eeed (patch)
tree7e2c85e052dce1284a67b6229fcdab362c34d5b3 /core/src/ch/asynk
parente82f7533f049d11573e9779fa4e53963a9e29ee2 (diff)
downloadRustAndDust-300548747eac805a7703a7f6a443d7afabf5eeed.zip
RustAndDust-300548747eac805a7703a7f6a443d7afabf5eeed.tar.gz
center loading logo on screen height
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/screens/LoadScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/LoadScreen.java b/core/src/ch/asynk/tankontank/screens/LoadScreen.java
index 79513ac..b98eaf1 100644
--- a/core/src/ch/asynk/tankontank/screens/LoadScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/LoadScreen.java
@@ -105,7 +105,7 @@ public class LoadScreen extends AbstractScreen
screenBg.setSize(stage.getWidth(), stage.getHeight());
logo.setX((stage.getWidth() - logo.getWidth()) / 2);
- logo.setY((stage.getHeight() - logo.getHeight()) - 50);
+ logo.setY(Math.min((stage.getHeight() / 2), (stage.getHeight() - logo.getHeight() - 10)));
loadingFrame.setX((stage.getWidth() - loadingFrame.getWidth()) / 2);
loadingFrame.setY(logo.getY() - loadingFrame.getHeight() - 20);