v0.3.1: display scale slider now only resets the scene if the value actually changes

This commit is contained in:
Evan Debenham 2015-08-09 18:36:05 -04:00 committed by Evan Debenham
parent 5b682ba17e
commit ee44b5072e

View File

@ -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);