diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 48c24b0..4c3c3c0 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -640,13 +640,13 @@ var points = path; var closed = true; - - if (points instanceof PIXI.Polygon) + + if (points instanceof math.Polygon) { closed = points.closed; points = points.points; } - + if (!Array.isArray(points)) { // prevents an argument leak deopt @@ -661,7 +661,7 @@ var shape = new math.Polygon(points); shape.closed = closed; - + this.drawShape(shape); return this; diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 48c24b0..4c3c3c0 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -640,13 +640,13 @@ var points = path; var closed = true; - - if (points instanceof PIXI.Polygon) + + if (points instanceof math.Polygon) { closed = points.closed; points = points.points; } - + if (!Array.isArray(points)) { // prevents an argument leak deopt @@ -661,7 +661,7 @@ var shape = new math.Polygon(points); shape.closed = closed; - + this.drawShape(shape); return this; diff --git a/src/core/renderers/canvas/utils/CanvasTinter.js b/src/core/renderers/canvas/utils/CanvasTinter.js index 7ccd2da..eedf175 100644 --- a/src/core/renderers/canvas/utils/CanvasTinter.js +++ b/src/core/renderers/canvas/utils/CanvasTinter.js @@ -71,7 +71,7 @@ var crop = texture.crop.clone(); crop.x *= resolution; crop.y *= resolution; - crop.width *= resolution + crop.width *= resolution; crop.height *= resolution; canvas.width = crop.width; @@ -126,7 +126,7 @@ var crop = texture.crop.clone(); crop.x *= resolution; crop.y *= resolution; - crop.width *= resolution + crop.width *= resolution; crop.height *= resolution; canvas.width = crop.width; @@ -168,7 +168,7 @@ var crop = texture.crop.clone(); crop.x *= resolution; crop.y *= resolution; - crop.width *= resolution + crop.width *= resolution; crop.height *= resolution; canvas.width = crop.width;