mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 11:57:19 +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
|
// No scaling, anchor, rotation or effects, literally draws the frame directly to the canvas
|
||||||
var BlitImage = function (dx, dy, frame)
|
var BlitImage = function (dx, dy, frame)
|
||||||
{
|
{
|
||||||
var ctx = this.context;
|
var ctx = this.currentContext;
|
||||||
var cd = frame.canvasData;
|
var cd = frame.canvasData;
|
||||||
|
|
||||||
ctx.drawImage(frame.source.image, cd.sx, cd.sy, cd.sWidth, cd.sHeight, dx, dy, cd.dWidth, cd.dHeight);
|
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 DrawImage = function (frame, blendMode, transform, anchorX, anchorY, alpha, tint, bg)
|
||||||
{
|
{
|
||||||
var ctx = this.context;
|
var ctx = this.currentContext;
|
||||||
var cd = frame.canvasData;
|
var cd = frame.canvasData;
|
||||||
|
|
||||||
// Blend Mode
|
// Blend Mode
|
||||||
|
|
Loading…
Add table
Reference in a new issue