Not using literal values for Color

This commit is contained in:
Jeroen De Meerleer 2019-03-19 16:41:31 +01:00
parent 1496d77866
commit 66cc09670d
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -563,15 +563,15 @@ class Sws extends SwsModel
switch (self::ReadData('Int', substr($swscontents, $offset, $length))) {
case 255:
case 253:
$color = 'B';
$color = Color::black;
break;
case 1:
case 3:
$color = 'W';
$color = Color::white;
break;
case 0:
default:
$color = '*';
$color = Color::none;
break;
}
$pairing->setColor(new Color($color));