From cd54439f65fb153edfc39c66a3481d3f8407a329 Mon Sep 17 00:00:00 2001 From: Willem Date: Tue, 15 Feb 2022 23:14:56 +0100 Subject: [PATCH] Code cleanup --- .../gdxapp/desktop/GDXAppDesktopLauncher.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main-gdxapp-desktop/src/main/love/distributedrebirth/gdxapp/desktop/GDXAppDesktopLauncher.java b/main-gdxapp-desktop/src/main/love/distributedrebirth/gdxapp/desktop/GDXAppDesktopLauncher.java index 908b2010..02f34960 100644 --- a/main-gdxapp-desktop/src/main/love/distributedrebirth/gdxapp/desktop/GDXAppDesktopLauncher.java +++ b/main-gdxapp-desktop/src/main/love/distributedrebirth/gdxapp/desktop/GDXAppDesktopLauncher.java @@ -1,7 +1,6 @@ package love.distributedrebirth.gdxapp.desktop; import java.util.Arrays; -import java.util.List; import com.badlogic.gdx.Files.FileType; import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; @@ -19,14 +18,17 @@ public class GDXAppDesktopLauncher { public static void main(String[] arg) { GDXAppDesktopConfig.printBootMessage(); + + int width = GDXAppDesktopConfig.WINDOW_WIDTH; + int height = GDXAppDesktopConfig.WINDOW_HEIGHT; + GDXAppMain.INSTANCE.BãßInit(Arrays.asList(arg), width, height, new DesktopFileChooser()); + Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); config.setMaxNetThreads(Runtime.getRuntime().availableProcessors()); config.setTitle(GDXAppDesktopConfig.WINDOW_TITLE); config.setWindowIcon(FileType.Internal, GDXAppDesktopConfig.WINDOW_ICONS); - config.setWindowedMode(GDXAppDesktopConfig.WINDOW_WIDTH, GDXAppDesktopConfig.WINDOW_HEIGHT); - List args = Arrays.asList(arg); - DesktopFileChooser aop0 = new DesktopFileChooser(); - GDXAppMain.INSTANCE.BãßInit(args, GDXAppDesktopConfig.WINDOW_WIDTH, GDXAppDesktopConfig.WINDOW_HEIGHT, aop0); + config.setWindowedMode(width, height); + Lwjgl3Application launcher = new Lwjgl3Application(GDXAppMain.INSTANCE, config); launcher.exit(); }