summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-17 19:14:02 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-12-17 19:14:02 +0100
commit11e02bbeefee419ce722516dfd0a24cf2be47e14 (patch)
tree49b9bd86d24a1dbbe77d089c0208807a8a5a6db6 /test/src
parenta81862884822d320790dfb3071384b89f9dc0a82 (diff)
downloadgdx-boardgame-11e02bbeefee419ce722516dfd0a24cf2be47e14.zip
gdx-boardgame-11e02bbeefee419ce722516dfd0a24cf2be47e14.tar.gz
MenuScreen : use getInnerTop() and getInnerRight()
Diffstat (limited to 'test/src')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java
index 3c198e0..23887f6 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java
@@ -51,8 +51,8 @@ public class MenuScreen extends AbstractScreen
private void drawCorners(SpriteBatch batch)
{
- float right = root.getInnerX() + root.getInnerWidth() - corner.getWidth();
- float top = root.getInnerY() + root.getInnerHeight() - corner.getHeight();
+ float right = root.getInnerRight() - corner.getWidth();
+ float top = root.getInnerTop() - corner.getHeight();
corner.setRotation(0);
corner.setPosition(root.getInnerX(), top);
corner.draw(batch);