Skip to content

Commit 52db133

Browse files
author
lauren mccarthy
committed
undo pd mod
1 parent 67c03ab commit 52db133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/p5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var core = function (require, shim, constants) {
8989
var constants = constants;
9090
var p5 = function (sketch, node) {
9191
this._setupDone = false;
92-
this._pixelDensity = 2;//window.devicePixelRatio || 1;
92+
this._pixelDensity =2;// window.devicePixelRatio || 1;
9393
this._startTime = new Date().getTime();
9494
this._userNode = node;
9595
this._curElement = null;
@@ -1020,7 +1020,7 @@ var p5Image = function (require, core, filters) {
10201020
var currBlend = this.drawingContext.globalCompositeOperation;
10211021
var scaleFactor = 1;
10221022
if (p5Image instanceof p5.Graphics) {
1023-
scaleFactor = p5Image._pInst._pixelDensity;
1023+
scaleFactor = p5Image._pixelDensity;
10241024
}
10251025
var copyArgs = [
10261026
p5Image,

0 commit comments

Comments
 (0)