mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 02:08:40 +00:00
Added fillRect back in for non-transparent canvas
This commit is contained in:
parent
299a3d108c
commit
fafc597b4c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue