summaryrefslogtreecommitdiff
path: root/core/src/com/ilotterytea/maxoning
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/com/ilotterytea/maxoning')
-rw-r--r--core/src/com/ilotterytea/maxoning/MaxonGame.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java
index 5c9af2b..4ee3861 100644
--- a/core/src/com/ilotterytea/maxoning/MaxonGame.java
+++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java
@@ -44,6 +44,13 @@ public class MaxonGame extends Game {
}
}
+ prefs.putInteger("width", Gdx.graphics.getWidth());
+ prefs.putInteger("height", Gdx.graphics.getHeight());
+ prefs.flush();
+
+ Gdx.graphics.setVSync(prefs.getBoolean("vsync", true));
+ if (prefs.getBoolean("fullscreen", false)) { Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode()); }
+
assetManager = new AssetManager();
this.setScreen(new AssetLoadingScreen(this));