v0.7.4b: fixed additional rare system UI issues
This commit is contained in:
@@ -76,6 +76,14 @@ public class SPDSettings extends GameSettings {
|
||||
return getBoolean(KEY_LANDSCAPE, Game.dispWidth > Game.dispHeight);
|
||||
}
|
||||
|
||||
public static Boolean landscapeFromSettings(){
|
||||
if (contains(KEY_LANDSCAPE)){
|
||||
return getBoolean(KEY_LANDSCAPE, false);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static void powerSaver( boolean value ){
|
||||
put( KEY_POWER_SAVER, value );
|
||||
((ShatteredPixelDungeon)ShatteredPixelDungeon.instance).updateDisplaySize();
|
||||
|
||||
@@ -104,7 +104,6 @@ public class ShatteredPixelDungeon extends Game {
|
||||
super.create();
|
||||
|
||||
updateSystemUI();
|
||||
SPDSettings.landscape ( SPDSettings.landscape() );
|
||||
|
||||
Music.INSTANCE.enable( SPDSettings.music() );
|
||||
Music.INSTANCE.volume( SPDSettings.musicVol()/10f );
|
||||
@@ -220,10 +219,4 @@ public class ShatteredPixelDungeon extends Game {
|
||||
public static void updateSystemUI() {
|
||||
platform.updateSystemUI();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resume() {
|
||||
super.resume();
|
||||
updateSystemUI();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user