mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 06:00:41 +00:00
Update TransformMatrix.js
* `TransformMatrix.setToContext` will now use `setTransform(this)` as 'this' is an equivalent object that this method can natively take. * `TransformMatrix.setQuad` no longer uses an anonymous function for `roundPixels`, which will help with performance.
This commit is contained in:
parent
4564216c54
commit
d799c06031
1 changed files with 1 additions and 3 deletions
|
@ -707,9 +707,7 @@ var TransformMatrix = new Class({
|
|||
*/
|
||||
setToContext: function (ctx)
|
||||
{
|
||||
var matrix = this.matrix;
|
||||
|
||||
ctx.setTransform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
|
||||
ctx.setTransform(this);
|
||||
|
||||
return ctx;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue