mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Swap to using the currentContext.
This commit is contained in:
parent
c2025b3e24
commit
8a1dc20211
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue