From 38c49a0cc2f76b567b3a4d162cfcbcf1cc6ee045 Mon Sep 17 00:00:00 2001 From: counter185 <33550839+counter185@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:53:48 +0200 Subject: [PATCH] fix default applet window size making the game go into 1x scale --- DeCraftLauncher/Utils/JavaCode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeCraftLauncher/Utils/JavaCode.cs b/DeCraftLauncher/Utils/JavaCode.cs index e59d322..48e4852 100644 --- a/DeCraftLauncher/Utils/JavaCode.cs +++ b/DeCraftLauncher/Utils/JavaCode.cs @@ -235,7 +235,7 @@ public static void main(String[] args){{ mainFrame = new JFrame(""DECRAFT Applet Wrapper: {className}""); {className} a = new {className}(); mainFrame.add(a); - mainFrame.setSize({jar.windowW} < 0 ? 854 : {jar.windowW}, {jar.windowH} < 0 ? 480 : {jar.windowH}); + mainFrame.setSize({jar.windowW} < 0 ? 960 : {jar.windowW}, {jar.windowH} < 0 ? 540 : {jar.windowH}); mainFrame.setVisible(true); mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);