mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
When setting both transparent: true
and backgroundColor
in the Game Config, it would ignore the transparency and use the color anyway. If transparent, the game is now fully transparent. Fix #5362
This commit is contained in:
parent
8bb1151aca
commit
aada315bbc
1 changed files with 2 additions and 1 deletions
|
@ -425,8 +425,9 @@ var Config = new Class({
|
|||
*/
|
||||
this.backgroundColor = ValueToColor(bgc);
|
||||
|
||||
if (bgc === 0 && this.transparent)
|
||||
if (this.transparent)
|
||||
{
|
||||
this.backgroundColor = ValueToColor(0x000000);
|
||||
this.backgroundColor.alpha = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue