Skip to content

Commit

Permalink
fix appletviewer window size
Browse files Browse the repository at this point in the history
  • Loading branch information
counter185 committed Jul 18, 2024
1 parent 38c49a0 commit 1b28b56
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 @@ -192,7 +192,7 @@ public static string GenerateAppletViewerHTML(string className, JarConfig jar, D
</head>
<body>
<!-- Generated by DECRAFT {GlobalVars.versionCode} -->
<applet style=""width: 100%; height: 100%;"" width=""{jar.windowW}"" height=""{jar.windowH}"" code=""{className}"" archive=""{jar.jarFileName}""></applet>
<applet style=""width: 100%; height: 100%;"" width=""{(jar.windowW > 0 ? jar.windowW : 960)}"" height=""{(jar.windowH > 0 ? jar.windowH : 540)}"" code=""{className}"" archive=""{jar.jarFileName}""></applet>
</body>
</html>
";
Expand Down

0 comments on commit 1b28b56

Please sign in to comment.