v0.3.1: fixed some bugs relating to display scaling and very small screens
This commit is contained in:
committed by
Evan Debenham
parent
36ccb6d48d
commit
a1e9b10358
@@ -36,8 +36,6 @@ public class WndSettings extends Window {
|
||||
private static final int BTN_HEIGHT = 20;
|
||||
private static final int GAP = 2;
|
||||
|
||||
private int setScale = PixelScene.defaultZoom;
|
||||
|
||||
public WndSettings() {
|
||||
super();
|
||||
|
||||
@@ -77,13 +75,4 @@ public class WndSettings extends Window {
|
||||
private String orientationText() {
|
||||
return ShatteredPixelDungeon.landscape() ? TXT_SWITCH_PORT : TXT_SWITCH_LAND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hide() {
|
||||
super.hide();
|
||||
if (setScale != PixelScene.defaultZoom) {
|
||||
ShatteredPixelDungeon.scale(setScale);
|
||||
ShatteredPixelDungeon.switchScene(TitleScene.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user