From 11e02bbeefee419ce722516dfd0a24cf2be47e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 17 Dec 2019 19:14:02 +0100 Subject: MenuScreen : use getInnerTop() and getInnerRight() --- test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java | 4 ++-- 1 file 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); -- cgit v1.1-2-g2b99