Skip to content

Commit

Permalink
1.1.597
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Jul 6, 2023
1 parent 2d2731b commit 1161bff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@
"make": "electron-forge make",
"publish": "electron-forge publish"
},
"version": "1.1.596"
"version": "1.1.597"
}
16 changes: 8 additions & 8 deletions v3/p5play.js
Original file line number Diff line number Diff line change
Expand Up @@ -7305,17 +7305,18 @@ p5.prototype.registerMethod('init', function p5PlayInit() {
}
let scale;
if (typeof args[2] == 'string') {
args[2] = args[2].toLowerCase();
if (args[2] != 'p2d' && args[2] != 'webgl') {
args[2] = args[2].split(' ');
let rend = args[2].toLowerCase();
if (rend != 'p2d' && rend != 'webgl') {
rend = rend.split(' ');
args[2] = undefined;
}
if (args[2][0] == 'pixelated') {
if (rend[0] == 'pixelated') {
pixelated = true;
if (!args[2][1]) isFullScreen = true;
else scale = Number(args[2][1].slice(1));
if (!rend[1]) isFullScreen = true;
else scale = Number(rend[1].slice(1));
ratio = [args[0], args[1]];
}
if (args[2][0] == 'fullscreen') {
if (rend[0] == 'fullscreen') {
isFullScreen = true;
}
}
Expand All @@ -7341,7 +7342,6 @@ p5.prototype.registerMethod('init', function p5PlayInit() {
args[1] = h;
}
}
args[2] = 'P2D';
let can = _createCanvas.call(pInst, ...args);
this.canvas.tabIndex = 0;
this.canvas.w = args[0];
Expand Down
2 changes: 1 addition & 1 deletion v3/p5play.min.js

Large diffs are not rendered by default.

0 comments on commit 1161bff

Please sign in to comment.