diff --git a/src/pixi/extras/TilingSprite.js b/src/pixi/extras/TilingSprite.js index 6df4b05..cb5ff4f 100644 --- a/src/pixi/extras/TilingSprite.js +++ b/src/pixi/extras/TilingSprite.js @@ -47,7 +47,7 @@ * @type Point */ this.tileScaleOffset = new PIXI.Point(1,1); - + /** * The offset position of the image that is being tiled * @@ -73,7 +73,7 @@ * @default 0xFFFFFF */ this.tint = 0xFFFFFF; - + /** * The blend mode to be applied to the sprite * @@ -83,7 +83,7 @@ */ this.blendMode = PIXI.blendModes.NORMAL; - + }; @@ -103,7 +103,7 @@ return this._width; }, set: function(value) { - + this._width = value; } }); @@ -138,7 +138,7 @@ * Renders the object using the WebGL renderer * * @method _renderWebGL -* @param renderSession {RenderSession} +* @param renderSession {RenderSession} * @private */ PIXI.TilingSprite.prototype._renderWebGL = function(renderSession) @@ -159,7 +159,7 @@ renderSession.filterManager.pushFilter(this._filterBlock); } - + if (!this.tilingTexture || this.refreshTexture) { @@ -187,7 +187,7 @@ if (this._filters) renderSession.filterManager.popFilter(); if (this._mask) renderSession.maskManager.popMask(this._mask, renderSession); - + renderSession.spriteBatch.start(); }; @@ -195,22 +195,22 @@ * Renders the object using the Canvas renderer * * @method _renderCanvas -* @param renderSession {RenderSession} +* @param renderSession {RenderSession} * @private */ PIXI.TilingSprite.prototype._renderCanvas = function(renderSession) { if (this.visible === false || this.alpha === 0)return; - + var context = renderSession.context; if (this._mask) { - renderSession.maskManager.pushMask(this._mask, context); + renderSession.maskManager.pushMask(this._mask, renderSession); } context.globalAlpha = this.worldAlpha; - + var transform = this.worldTransform; var i,j; @@ -227,7 +227,7 @@ if (!this.__tilePattern || this.refreshTexture) { this.generateTilingTexture(false); - + if (this.tilingTexture) { this.__tilePattern = context.createPattern(this.tilingTexture.baseTexture.source, 'repeat'); @@ -302,7 +302,7 @@ var d = worldTransform.d; var tx = worldTransform.tx; var ty = worldTransform.ty; - + var x1 = a * w1 + c * h1 + tx; var y1 = d * h1 + b * w1 + ty; @@ -371,9 +371,9 @@ /** -* +* * @method generateTilingTexture -* +* * @param forcePowerOfTwo {Boolean} Whether we want to force the texture to be a power of two */ PIXI.TilingSprite.prototype.generateTilingTexture = function(forcePowerOfTwo) @@ -395,7 +395,7 @@ { targetWidth = frame.width; targetHeight = frame.height; - + newTextureRequired = true; } } @@ -458,9 +458,9 @@ } this.refreshTexture = false; - + this.originalTexture = this.texture; this.texture = this.tilingTexture; - + this.tilingTexture.baseTexture._powerOf2 = true; };