From 39525ec0f133a57e09978bde2db98890272d37f2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 9 Nov 2019 22:38:55 -0500 Subject: [PATCH] v0.8.0: tweaked scroll zooming to round instead of floor --- .../shatteredpixeldungeon/scenes/CellSelector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java index 5a41da4cf..e45f1447d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java @@ -69,7 +69,7 @@ public class CellSelector extends ScrollArea { diff = Math.min(1, diff); mouseZoom = GameMath.gate( PixelScene.minZoom, mouseZoom - diff, PixelScene.maxZoom ); - zoom( (int)Math.floor(mouseZoom) ); + zoom( Math.round(mouseZoom) ); } @Override