aboutsummaryrefslogtreecommitdiff
path: root/engines/director/cast.cpp
diff options
context:
space:
mode:
authorScott Percival2020-01-05 11:35:28 +0800
committerScott Percival2020-01-05 11:35:40 +0800
commit2910e20a9209d544acf1c6e26c368d501de53cab (patch)
treed95795b5d111e7491efe1563b6198ead629f178e /engines/director/cast.cpp
parent86db38520a5fd5e02a6e48b07da22c0072f495c6 (diff)
downloadscummvm-rg350-2910e20a9209d544acf1c6e26c368d501de53cab.tar.gz
scummvm-rg350-2910e20a9209d544acf1c6e26c368d501de53cab.tar.bz2
scummvm-rg350-2910e20a9209d544acf1c6e26c368d501de53cab.zip
DIRECTOR: Re-add strange colour mapping for v3 and below
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r--engines/director/cast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index 8ec151cb1b..4042f453bf 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -276,8 +276,8 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) {
_shapeType = static_cast<ShapeType>(stream.readByte());
_initialRect = Score::readRect(stream);
_pattern = stream.readUint16BE();
- _fgCol = 0xff - (uint8)stream.readByte();
- _bgCol = 0xff - (uint8)stream.readByte();
+ _fgCol = (127 - stream.readByte()) & 0xff; // -128 -> 0, 127 -> 256
+ _bgCol = (127 - stream.readByte()) & 0xff;
_fillType = stream.readByte();
_ink = static_cast<InkType>(_fillType & 0x3f);
_lineThickness = stream.readByte();