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:
Richard Davey 2020-10-20 14:01:31 +01:00
parent 8bb1151aca
commit aada315bbc

View file

@ -425,8 +425,9 @@ var Config = new Class({
*/ */
this.backgroundColor = ValueToColor(bgc); this.backgroundColor = ValueToColor(bgc);
if (bgc === 0 && this.transparent) if (this.transparent)
{ {
this.backgroundColor = ValueToColor(0x000000);
this.backgroundColor.alpha = 0; this.backgroundColor.alpha = 0;
} }