Skip to content

Commit aada315

Browse files
committed
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 phaserjs#5362
1 parent 8bb1151 commit aada315

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/Config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,9 @@ var Config = new Class({
425425
*/
426426
this.backgroundColor = ValueToColor(bgc);
427427

428-
if (bgc === 0 && this.transparent)
428+
if (this.transparent)
429429
{
430+
this.backgroundColor = ValueToColor(0x000000);
430431
this.backgroundColor.alpha = 0;
431432
}
432433

0 commit comments

Comments
 (0)