diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/SPDSettings.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/SPDSettings.java index 3219090cd..65b19066d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/SPDSettings.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/SPDSettings.java @@ -64,7 +64,7 @@ public class SPDSettings extends GameSettings { } public static boolean fullscreen() { - return getBoolean( KEY_FULLSCREEN, DeviceCompat.isDesktop() ); + return getBoolean( KEY_FULLSCREEN, true ); } public static void zoom( int value ) { @@ -437,8 +437,8 @@ public class SPDSettings extends GameSettings { public static Point windowResolution(){ return new Point( - getInt( KEY_WINDOW_WIDTH, 800, 720, Integer.MAX_VALUE ), - getInt( KEY_WINDOW_HEIGHT, 600, 400, Integer.MAX_VALUE ) + 1920, + 1080 ); } diff --git a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSLauncher.java b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSLauncher.java index ddb18428d..36006772a 100644 --- a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSLauncher.java +++ b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSLauncher.java @@ -98,7 +98,7 @@ public class IOSLauncher extends IOSApplication.Delegate { config.depthFormat = MGLDrawableDepthFormat.None; config.hdpiMode = HdpiMode.Pixels; - config.hideHomeIndicator = SPDSettings.fullscreen(); + config.hideHomeIndicator = true; config.overrideRingerSwitch = SPDSettings.ignoreSilentMode(); CGRect statusBarFrame = UIApplication.getSharedApplication().getStatusBarFrame(); diff --git a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java index ccc3888f5..97558af83 100644 --- a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java +++ b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java @@ -28,7 +28,6 @@ import com.badlogic.gdx.backends.iosrobovm.objectal.OALSimpleAudio; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.g2d.PixmapPacker; import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator; -import com.shatteredpixel.shatteredpixeldungeon.SPDSettings; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.watabou.input.ControllerHandler; import com.watabou.noosa.Game; @@ -55,22 +54,12 @@ public class IOSPlatformSupport extends PlatformSupport { } else { UIApplication.getSharedApplication().setStatusBarHidden(true); } - - if (!SPDSettings.fullscreen()) { - int insetChange = Gdx.graphics.getSafeInsetBottom() - Game.bottomInset; - Game.bottomInset = Gdx.graphics.getSafeInsetBottom(); - Game.height -= insetChange; - } else { - Game.height += Game.bottomInset; - Game.bottomInset = 0; - } - Gdx.gl.glViewport(0, Game.bottomInset, Game.width, Game.height); } @Override public boolean supportsFullScreen() { - //iOS supports hiding UI via drawing into the gesture safe area - return Gdx.graphics.getSafeInsetBottom() > 0; + //fullscreen is always enabled on iOS + return false; } @Override