Skip to content

Commit fafc597

Browse files
committed
Added fillRect back in for non-transparent canvas
1 parent 299a3d1 commit fafc597

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/renderer/canvas/CanvasRenderer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,12 @@ var CanvasRenderer = new Class({
382382
ctx.clearRect(0, 0, width, height);
383383
}
384384

385+
if (!config.transparent)
386+
{
387+
ctx.fillStyle = config.backgroundColor.rgba;
388+
ctx.fillRect(0, 0, width, height);
389+
}
390+
385391
ctx.save();
386392

387393
this.drawCount = 0;

0 commit comments

Comments
 (0)