summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-09-04 23:18:26 +0600
committerilotterytea <iltsu@alright.party>2022-09-04 23:18:26 +0600
commit49361b0396f6fad7f4d37555200f950c1b18281a (patch)
tree7ddb5d5c4ec72e3f84a9830156a95e4cab95a0f6 /core/src
parentf3d02877be9a56e407fb87ffb6bcd7a69a10a1db (diff)
fullscreen is false by default bruh
Diffstat (limited to 'core/src')
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/OptionsTable.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java b/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
index abb08eb..5a3b73b 100644
--- a/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
+++ b/core/src/com/ilotterytea/maxoning/ui/OptionsTable.java
@@ -98,21 +98,21 @@ public class OptionsTable extends Table {
lidlOptionsTable.add(vsyncButton).size(512f, 81f).pad(10f).left();
- final NinepatchButton fullscreenButton = new NinepatchButton(buttonUp, buttonDown, buttonOver, game.locale.FormattedText("options.fullscreen", (game.prefs.getBoolean("fullscreen", true)) ? "ON" : "OFF"), skin, "default");
+ final NinepatchButton fullscreenButton = new NinepatchButton(buttonUp, buttonDown, buttonOver, game.locale.FormattedText("options.fullscreen", (game.prefs.getBoolean("fullscreen", false)) ? "ON" : "OFF"), skin, "default");
fullscreenButton.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
- game.prefs.putBoolean("fullscreen", !game.prefs.getBoolean("fullscreen", true));
+ game.prefs.putBoolean("fullscreen", !game.prefs.getBoolean("fullscreen", false));
game.prefs.flush();
- if (game.prefs.getBoolean("fullscreen", true)) {
+ if (game.prefs.getBoolean("fullscreen", false)) {
Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode());
} else {
Gdx.graphics.setWindowedMode(game.prefs.getInteger("width", Gdx.graphics.getWidth()), game.prefs.getInteger("height", Gdx.graphics.getHeight()));
}
- fullscreenButton.setText(game.locale.FormattedText("options.fullscreen", (game.prefs.getBoolean("fullscreen", true)) ? "ON" : "OFF"));
+ fullscreenButton.setText(game.locale.FormattedText("options.fullscreen", (game.prefs.getBoolean("fullscreen", false)) ? "ON" : "OFF"));
}
});