From 50a80aba44621cd17168b611bc65bc9325b3dcc5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 27 Aug 2020 14:27:45 -0400 Subject: [PATCH] v0.8.2c: fixed WndBag resizing using the wrong camera --- .../shatteredpixel/shatteredpixeldungeon/windows/WndBag.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java index ecac00a21..4767e6761 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndBag.java @@ -60,7 +60,6 @@ import com.watabou.gltextures.TextureCache; import com.watabou.input.KeyBindings; import com.watabou.input.KeyEvent; import com.watabou.noosa.BitmapText; -import com.watabou.noosa.Camera; import com.watabou.noosa.ColorBlock; import com.watabou.noosa.Game; import com.watabou.noosa.Image; @@ -152,12 +151,12 @@ public class WndBag extends WndTabbed { int windowHeight = TITLE_HEIGHT + slotHeight * nRows + SLOT_MARGIN * (nRows - 1); if (PixelScene.landscape()){ - while (windowHeight + 20 > Camera.main.height){ + while (windowHeight + 20 > PixelScene.uiCamera.height){ slotHeight--; windowHeight -= nRows; } } else { - while (windowWidth > Camera.main.width){ + while (windowWidth > PixelScene.uiCamera.width){ slotWidth--; windowWidth -= nCols; }