From 591d6bc21440bbc1129a44b4c0154bd5cb48d6c6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 26 Nov 2019 14:12:47 -0500 Subject: [PATCH] v0.8.0: fixed a small layout issue with ChangeButton --- .../shatteredpixeldungeon/ui/changelist/ChangeButton.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java index 31b32002b..8516f7bd2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/ChangeButton.java @@ -60,8 +60,8 @@ public class ChangeButton extends Component { protected void layout() { super.layout(); - icon.x = x + (width - icon.width) / 2f; - icon.y = y + (height - icon.height) / 2f; + icon.x = x + (width - icon.width()) / 2f; + icon.y = y + (height - icon.height()) / 2f; PixelScene.align(icon); } }