Skip to content

Commit

Permalink
Merge pull request #6970 from rafa-fie/master
Browse files Browse the repository at this point in the history
add backward compatibility for setTransform function #6965
  • Loading branch information
photonstorm authored Jan 2, 2025
2 parents 81117f3 + 1c73ee3 commit d00f329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gameobjects/components/TransformMatrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ var TransformMatrix = new Class({
*/
setToContext: function (ctx)
{
ctx.setTransform(this);
// using old way for old browser compatibility #6965
ctx.setTransform(this.a, this.b, this.c, this.d, this.e, this.f);

return ctx;
},
Expand Down

0 comments on commit d00f329

Please sign in to comment.