summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/menu
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-19 20:47:34 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-19 20:47:34 +0200
commite663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b (patch)
tree7274aa8ac683d27854fe3dbd01c98348b7d0ee04 /core/src/ch/asynk/rustanddust/menu
parent0396ad70e535412501fe94736dd1e08ed2cf9ce5 (diff)
downloadRustAndDust-e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b.zip
RustAndDust-e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b.tar.gz
PlayMeny: fix width calculation
Diffstat (limited to 'core/src/ch/asynk/rustanddust/menu')
-rw-r--r--core/src/ch/asynk/rustanddust/menu/PlayMenu.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
index 2472952..8babc57 100644
--- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
+++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java
@@ -93,7 +93,7 @@ public class PlayMenu extends Patch implements MenuCtrl.Panel
h += (2 * padding);
h = Math.min(h, Gdx.graphics.getHeight() - 60);
- float w = title.getWidth() + PADDING + gameModeWidth;
+ float w = title.getWidth() + PADDING + gameModeWidth + 5 + gameMode.getWidth();
if (list.getWidth() > w) w = list.getWidth();
if (list.getBestWidth() > w) w = list.getBestWidth();
w += (2 * padding);