From 34ca62f506ec82e54072bb6072535b3444732b17 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 13 Oct 2019 01:33:36 -0400 Subject: [PATCH] v0.7.5b: fixed layout issues with WndInfoBuff, and removed unused method --- .../shatteredpixeldungeon/ui/RenderedTextBlock.java | 4 ---- .../shatteredpixeldungeon/windows/WndInfoBuff.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/RenderedTextBlock.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/RenderedTextBlock.java index 59b827ef2..f7bf4ea3c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/RenderedTextBlock.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/RenderedTextBlock.java @@ -77,10 +77,6 @@ public class RenderedTextBlock extends Component { public String text(){ return text; } - - public float baseLine(){ - return size * zoom; - } public void maxWidth(int maxWidth){ if (this.maxWidth != maxWidth){ diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoBuff.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoBuff.java index bd7c83faa..890e526ed 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoBuff.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoBuff.java @@ -63,6 +63,6 @@ public class WndInfoBuff extends Window { txtInfo.setPos(titlebar.left(), titlebar.bottom() + GAP); add( txtInfo ); - resize( WIDTH, (int)(txtInfo.top() + txtInfo.height()) ); + resize( WIDTH, (int)txtInfo.bottom() + 2 ); } }