mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-26 00:07:42 +01:00
Not using literal values for Color
This commit is contained in:
parent
a716866b4f
commit
7be3b2f0ab
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user