From 34b27fd57a1f6354ee762a18e5b347031120765f Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Sun, 29 Jul 2018 12:16:42 +0100 Subject: [PATCH] `ParticleEmitter` would fail to draw a textured particle in Canvas mode --- src/gameobjects/particles/ParticleManagerCanvasRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameobjects/particles/ParticleManagerCanvasRenderer.js b/src/gameobjects/particles/ParticleManagerCanvasRenderer.js index f18502cc3..170bfb299 100644 --- a/src/gameobjects/particles/ParticleManagerCanvasRenderer.js +++ b/src/gameobjects/particles/ParticleManagerCanvasRenderer.js @@ -103,7 +103,7 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, interpol ctx.scale(particle.scaleX, particle.scaleY); - ctx.drawImage(frame.source.image, cd.sx, cd.sy, cd.sWidth, cd.sHeight, x, y, cd.dWidth, cd.dHeight); + ctx.drawImage(frame.source.image, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height); ctx.restore(); }