diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index d48b65a635..5bde4d11ec 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -545,7 +545,7 @@ public class Control implements ApplicationListener, Loadable{ if(full){ graphics.setWindowedMode(graphics.getWidth(), graphics.getHeight()); }else{ - graphics.setFullscreenMode(graphics.getDisplayMode()); + graphics.setFullscreen(); } settings.put("fullscreen", !full); } diff --git a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java index 23e409fddb..73f57d4640 100644 --- a/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java +++ b/core/src/mindustry/ui/dialogs/SettingsMenuDialog.java @@ -363,7 +363,7 @@ public class SettingsMenuDialog extends BaseDialog{ } if(b){ - Core.graphics.setFullscreenMode(Core.graphics.getDisplayMode()); + Core.graphics.setFullscreen(); }else{ Core.graphics.setWindowedMode(Core.graphics.getWidth(), Core.graphics.getHeight()); } @@ -381,7 +381,7 @@ public class SettingsMenuDialog extends BaseDialog{ Core.graphics.setVSync(Core.settings.getBool("vsync")); if(Core.settings.getBool("fullscreen")){ - Core.app.post(() -> Core.graphics.setFullscreenMode(Core.graphics.getDisplayMode())); + Core.app.post(() -> Core.graphics.setFullscreen()); } if(Core.settings.getBool("borderlesswindow")){ diff --git a/gradle.properties b/gradle.properties index 7e05c6f3d7..999615608e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,4 +24,4 @@ android.useAndroidX=true #used for slow jitpack builds; TODO see if this actually works org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 -archash=1eed4e223d +archash=16a80926a6