Skip to content

Commit 87f89ed

Browse files
authored
fix: game resolution ignored (#1429)
* fix: game resolution * fix
1 parent 2664f8b commit 87f89ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/desktop/utils/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ export const getJVMArguments112 = (
577577
args.push(...mcArgs);
578578

579579
if (resolution) {
580-
args.push(`--width ${resolution.width}`);
581-
args.push(`--height ${resolution.height}`);
580+
args.push(`--width=${resolution.width}`);
581+
args.push(`--height=${resolution.height}`);
582582
}
583583

584584
return args;
@@ -700,8 +700,8 @@ export const getJVMArguments113 = (
700700
}
701701

702702
if (resolution) {
703-
args.push(`--width ${resolution.width}`);
704-
args.push(`--height ${resolution.height}`);
703+
args.push(`--width=${resolution.width}`);
704+
args.push(`--height=${resolution.height}`);
705705
}
706706

707707
args = args.filter(arg => {

0 commit comments

Comments
 (0)