From ee44b5072e82167c697385546ad73a2d4ca9aad4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 9 Aug 2015 18:36:05 -0400 Subject: [PATCH] v0.3.1: display scale slider now only resets the scene if the value actually changes --- .../shatteredpixeldungeon/windows/WndSettings.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java index a21b3f8a9..6f40211b4 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java @@ -105,8 +105,10 @@ public class WndSettings extends WndTabbed { PixelScene.maxDefaultZoom ) { @Override protected void onChange() { - ShatteredPixelDungeon.scale(getSelectedValue()); - ShatteredPixelDungeon.resetScene(); + if (getSelectedValue() != ShatteredPixelDungeon.scale()) { + ShatteredPixelDungeon.scale(getSelectedValue()); + ShatteredPixelDungeon.resetScene(); + } } }; scale.setSelectedValue(PixelScene.defaultZoom);