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:
Richard Davey 2023-11-07 18:27:47 +00:00
parent 4564216c54
commit d799c06031

View file

@ -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;
},