Skip to content

Commit

Permalink
fix default applet window size making the game go into 1x scale
Browse files Browse the repository at this point in the history
  • Loading branch information
counter185 committed Jul 18, 2024
1 parent 809e33e commit 38c49a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeCraftLauncher/Utils/JavaCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38c49a0

Please sign in to comment.