diff --git a/src/pixi/display/Sprite.js b/src/pixi/display/Sprite.js index 83dc1f8..87538d4 100644 --- a/src/pixi/display/Sprite.js +++ b/src/pixi/display/Sprite.js @@ -340,21 +340,21 @@ if (renderSession.roundPixels) { renderSession.context.setTransform( - this.worldTransform.a, - this.worldTransform.c, - this.worldTransform.b, - this.worldTransform.d, - this.worldTransform.tx | 0, + this.worldTransform.a, + this.worldTransform.c, + this.worldTransform.b, + this.worldTransform.d, + this.worldTransform.tx | 0, this.worldTransform.ty | 0); } else { renderSession.context.setTransform( - this.worldTransform.a, - this.worldTransform.c, - this.worldTransform.b, - this.worldTransform.d, - this.worldTransform.tx, + this.worldTransform.a, + this.worldTransform.c, + this.worldTransform.b, + this.worldTransform.d, + this.worldTransform.tx, this.worldTransform.ty); } @@ -380,27 +380,27 @@ } renderSession.context.drawImage( - this.tintedTexture, - 0, - 0, - this.texture.crop.width, - this.texture.crop.height, - dx, - dy, - this.texture.crop.width, + this.tintedTexture, + 0, + 0, + this.texture.crop.width, + this.texture.crop.height, + dx, + dy, + this.texture.crop.width, this.texture.crop.height); } else { renderSession.context.drawImage( - this.texture.baseTexture.source, - this.texture.crop.x, - this.texture.crop.y, - this.texture.crop.width, - this.texture.crop.height, - dx, - dy, - this.texture.crop.width, + this.texture.baseTexture.source, + this.texture.crop.x, + this.texture.crop.y, + this.texture.crop.width, + this.texture.crop.height, + dx, + dy, + this.texture.crop.width, this.texture.crop.height); } } diff --git a/src/pixi/display/Sprite.js b/src/pixi/display/Sprite.js index 83dc1f8..87538d4 100644 --- a/src/pixi/display/Sprite.js +++ b/src/pixi/display/Sprite.js @@ -340,21 +340,21 @@ if (renderSession.roundPixels) { renderSession.context.setTransform( - this.worldTransform.a, - this.worldTransform.c, - this.worldTransform.b, - this.worldTransform.d, - this.worldTransform.tx | 0, + this.worldTransform.a, + this.worldTransform.c, + this.worldTransform.b, + this.worldTransform.d, + this.worldTransform.tx | 0, this.worldTransform.ty | 0); } else { renderSession.context.setTransform( - this.worldTransform.a, - this.worldTransform.c, - this.worldTransform.b, - this.worldTransform.d, - this.worldTransform.tx, + this.worldTransform.a, + this.worldTransform.c, + this.worldTransform.b, + this.worldTransform.d, + this.worldTransform.tx, this.worldTransform.ty); } @@ -380,27 +380,27 @@ } renderSession.context.drawImage( - this.tintedTexture, - 0, - 0, - this.texture.crop.width, - this.texture.crop.height, - dx, - dy, - this.texture.crop.width, + this.tintedTexture, + 0, + 0, + this.texture.crop.width, + this.texture.crop.height, + dx, + dy, + this.texture.crop.width, this.texture.crop.height); } else { renderSession.context.drawImage( - this.texture.baseTexture.source, - this.texture.crop.x, - this.texture.crop.y, - this.texture.crop.width, - this.texture.crop.height, - dx, - dy, - this.texture.crop.width, + this.texture.baseTexture.source, + this.texture.crop.x, + this.texture.crop.y, + this.texture.crop.width, + this.texture.crop.height, + dx, + dy, + this.texture.crop.width, this.texture.crop.height); } } diff --git a/src/pixi/extras/TilingSprite.js b/src/pixi/extras/TilingSprite.js index 1c054b2..588c517 100644 --- a/src/pixi/extras/TilingSprite.js +++ b/src/pixi/extras/TilingSprite.js @@ -250,7 +250,7 @@ // make sure to account for the anchor point.. context.fillRect(-tilePosition.x + (this.anchor.x * -this._width), -tilePosition.y + (this.anchor.y * -this._height), - this._width / tileScale.x, + this._width / tileScale.x, this._height / tileScale.y); context.scale(1 / tileScale.x, 1 / tileScale.y);