Skip to content

Commit 8a1dc20

Browse files
committed
Swap to using the currentContext.
1 parent c2025b3 commit 8a1dc20

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/renderer/canvas/utils/BlitImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// No scaling, anchor, rotation or effects, literally draws the frame directly to the canvas
33
var BlitImage = function (dx, dy, frame)
44
{
5-
var ctx = this.context;
5+
var ctx = this.currentContext;
66
var cd = frame.canvasData;
77

88
ctx.drawImage(frame.source.image, cd.sx, cd.sy, cd.sWidth, cd.sHeight, dx, dy, cd.dWidth, cd.dHeight);

v3/src/renderer/canvas/utils/DrawImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
var DrawImage = function (frame, blendMode, transform, anchorX, anchorY, alpha, tint, bg)
33
{
4-
var ctx = this.context;
4+
var ctx = this.currentContext;
55
var cd = frame.canvasData;
66

77
// Blend Mode

0 commit comments

Comments
 (0)