Skip to content

Commit

Permalink
add backward compatibility for setTransform function #6965
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-fie committed Nov 29, 2024
1 parent 97e3e67 commit 1c73ee3
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 1c73ee3

Please sign in to comment.