Updated Pixi to fix roundToPixel error.

This commit is contained in:
photonstorm
2014-03-03 16:13:50 +00:00
parent 833960b3c8
commit 6cc09fce67
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ PIXI.Sprite.prototype._renderCanvas = function(renderSession)
// allow for trimming
if (renderSession.roundPixels)
{
context.setTransform(transform.a, transform.c, transform.b, transform.d, transform.tx || 0, transform.ty || 0);
context.setTransform(transform.a, transform.c, transform.b, transform.d, transform.tx | 0, transform.ty | 0);
}
else
{
+1 -1
View File
@@ -148,7 +148,7 @@ PIXI.SpriteBatch.prototype._renderCanvas = function(renderSession)
if (renderSession.roundPixels)
{
context.setTransform(childTransform.a, childTransform.c, childTransform.b, childTransform.d, childTransform.tx || 0, childTransform.ty || 0);
context.setTransform(childTransform.a, childTransform.c, childTransform.b, childTransform.d, childTransform.tx | 0, childTransform.ty | 0);
}
else
{