From f7ccf3c04abb32741aa0a318730c1dfb9a47739a Mon Sep 17 00:00:00 2001 From: Gureumi <44261958+Kieaer@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:13:59 +0900 Subject: [PATCH] Add window size parameter (#8281) * Add window size parameter * Formatting * Java 8 --- .../mindustry/desktop/DesktopLauncher.java | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/desktop/src/mindustry/desktop/DesktopLauncher.java b/desktop/src/mindustry/desktop/DesktopLauncher.java index 855b1b4377..c4c9cc4342 100644 --- a/desktop/src/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/mindustry/desktop/DesktopLauncher.java @@ -41,15 +41,28 @@ public class DesktopLauncher extends ClientLauncher{ maximized = true; width = 900; height = 700; - //enable gl3 with command-line argument (slower performance, apparently) - if(Structs.contains(arg, "-gl3")){ - gl30 = true; - } - if(Structs.contains(arg, "-antialias")){ - samples = 16; - } - if(Structs.contains(arg, "-debug")){ - Log.level = LogLevel.debug; + for(int i = 0;i