@@ -686,16 +686,13 @@ Phaser.TilemapLayer.prototype.resetTilesetCache = function ()
686686*
687687* The specified (x/y) will be shifted to (0,0) after the copy and the newly exposed canvas area will need to be filled in.
688688*
689- * If `copyCanvas` is specified it will be used as an intermediate copy buffer and may be resized.
690- *
691689* @method Phaser.TilemapLayer#shiftCanvas
692690* @private
693691* @param {CanvasRenderingContext2D } context - The context to shift
694692* @param {integer } x
695693* @param {integer } y
696- * @param {DOMCanvasElement } [copyCanvas=(none)] - If specified this canvas will be used as an intermediate copy buffer.
697694*/
698- Phaser . TilemapLayer . prototype . shiftCanvas = function ( context , x , y , copyCanvas )
695+ Phaser . TilemapLayer . prototype . shiftCanvas = function ( context , x , y )
699696{
700697
701698 var canvas = context . canvas ;
@@ -720,6 +717,7 @@ Phaser.TilemapLayer.prototype.shiftCanvas = function (context, x, y, copyCanvas)
720717 sy = 0 ;
721718 }
722719
720+ var copyCanvas = this . renderSettings . copyCanvas ;
723721 if ( copyCanvas )
724722 {
725723 // Copying happens in slices to minimize copy canvas size overhead
@@ -928,7 +926,7 @@ Phaser.TilemapLayer.prototype.renderDeltaScroll = function (shiftX, shiftY) {
928926 bottom = shiftY ;
929927 }
930928
931- this . shiftCanvas ( this . context , shiftX , shiftY , this . renderSettings . copyCanvas ) ;
929+ this . shiftCanvas ( this . context , shiftX , shiftY ) ;
932930
933931 // Transform into tile-space
934932 left = Math . floor ( ( left + scrollX ) / tw ) ;
0 commit comments