Fixed issue where Phaser.Canvas.create would always make a screencanvas for CocoonJS, but that should only happen once. New parameter toggles it.

This commit is contained in:
photonstorm
2014-02-28 03:55:06 +00:00
parent 34ee2b0b20
commit 09d4a35b7f
14 changed files with 688 additions and 273 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ Phaser.BitmapData = function (game, key, width, height) {
* @property {HTMLCanvasElement} canvas - The canvas to which this BitmapData draws.
* @default
*/
this.canvas = Phaser.Canvas.create(width, height);
this.canvas = Phaser.Canvas.create(width, height, '', true);
/**
* @property {CanvasRenderingContext2D} context - The 2d context of the canvas.