mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Not using literal values for Color
This commit is contained in:
parent
1496d77866
commit
66cc09670d
@ -563,15 +563,15 @@ class Sws extends SwsModel
|
|||||||
switch (self::ReadData('Int', substr($swscontents, $offset, $length))) {
|
switch (self::ReadData('Int', substr($swscontents, $offset, $length))) {
|
||||||
case 255:
|
case 255:
|
||||||
case 253:
|
case 253:
|
||||||
$color = 'B';
|
$color = Color::black;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
case 3:
|
case 3:
|
||||||
$color = 'W';
|
$color = Color::white;
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
default:
|
default:
|
||||||
$color = '*';
|
$color = Color::none;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$pairing->setColor(new Color($color));
|
$pairing->setColor(new Color($color));
|
||||||
|
Loading…
Reference in New Issue
Block a user