Added fillRect back in for non-transparent canvas

This commit is contained in:
Richard Davey 2018-11-28 15:49:24 +00:00
parent 299a3d108c
commit fafc597b4c

View file

@ -382,6 +382,12 @@ var CanvasRenderer = new Class({
ctx.clearRect(0, 0, width, height);
}
if (!config.transparent)
{
ctx.fillStyle = config.backgroundColor.rgba;
ctx.fillRect(0, 0, width, height);
}
ctx.save();
this.drawCount = 0;