Swap to using the currentContext.

This commit is contained in:
Richard Davey 2017-02-07 18:42:19 +00:00
parent c2025b3e24
commit 8a1dc20211
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
// No scaling, anchor, rotation or effects, literally draws the frame directly to the canvas
var BlitImage = function (dx, dy, frame)
{
var ctx = this.context;
var ctx = this.currentContext;
var cd = frame.canvasData;
ctx.drawImage(frame.source.image, cd.sx, cd.sy, cd.sWidth, cd.sHeight, dx, dy, cd.dWidth, cd.dHeight);

View file

@ -1,7 +1,7 @@
var DrawImage = function (frame, blendMode, transform, anchorX, anchorY, alpha, tint, bg)
{
var ctx = this.context;
var ctx = this.currentContext;
var cd = frame.canvasData;
// Blend Mode