v0.3.1: display scale slider now only resets the scene if the value actually changes
This commit is contained in:
parent
5b682ba17e
commit
ee44b5072e
|
@ -105,9 +105,11 @@ public class WndSettings extends WndTabbed {
|
|||
PixelScene.maxDefaultZoom ) {
|
||||
@Override
|
||||
protected void onChange() {
|
||||
if (getSelectedValue() != ShatteredPixelDungeon.scale()) {
|
||||
ShatteredPixelDungeon.scale(getSelectedValue());
|
||||
ShatteredPixelDungeon.resetScene();
|
||||
}
|
||||
}
|
||||
};
|
||||
scale.setSelectedValue(PixelScene.defaultZoom);
|
||||
if ((int)Math.ceil(2* Game.density) < PixelScene.maxDefaultZoom) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user