Skip to content

Commit

Permalink
Merge pull request #6 from Owumaro/master
Browse files Browse the repository at this point in the history
Update `Phaser.Canvas.create` call for Phaser 2.4.3+ new parameters
  • Loading branch information
beeglebug authored Jul 13, 2016
2 parents 55b9681 + 9e62210 commit 7332fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PixelScaler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Phaser.Plugin.PixelScaler.prototype.init = function(scale) {
this.scaledHeight = this.originalHeight * this.scale;

// create a new scaled canvas to draw to
this.scaledCanvas = Phaser.Canvas.create(this.scaledWidth, this.scaledHeight);
this.scaledCanvas = Phaser.Canvas.create(null, this.scaledWidth, this.scaledHeight, null, true);
this.context = this.scaledCanvas.getContext('2d');

Phaser.Canvas.addToDOM(this.scaledCanvas, this.game.parent);
Expand Down

0 comments on commit 7332fba

Please sign in to comment.