We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 166e4f8 commit 4caa4c0Copy full SHA for 4caa4c0
squeak.js
@@ -1189,6 +1189,11 @@ function processOptions(options) {
1189
Squeak.dirCreate(root, true);
1190
if (!/\/$/.test(root)) root += "/";
1191
options.root = root;
1192
+ if (options.w) options.fixedWidth = options.w;
1193
+ if (options.h) options.fixedHeight = options.h;
1194
+ if (options.fixedWidth && !options.fixedHeight) options.fixedHeight = options.fixedWidth * 3 / 4 | 0;
1195
+ if (options.fixedHeight && !options.fixedWidth) options.fixedWidth = options.fixedHeight * 4 / 3 | 0;
1196
+ if (options.fixedWidth && options.fixedHeight) options.fullscreen = true;
1197
SqueakJS.options = options;
1198
}
1199
0 commit comments