diff options
author | Eugene Sandulenko | 2019-12-25 02:12:55 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-25 02:12:55 +0100 |
commit | d5687eb22274bf0eb2b737239738862500249390 (patch) | |
tree | 85eb9f111edcadc43938a36943c7295365bdbc4d /engines/director/cast.cpp | |
parent | 85b67d87714f8dbb4669c4033c019839df8f55d9 (diff) | |
download | scummvm-rg350-d5687eb22274bf0eb2b737239738862500249390.tar.gz scummvm-rg350-d5687eb22274bf0eb2b737239738862500249390.tar.bz2 scummvm-rg350-d5687eb22274bf0eb2b737239738862500249390.zip |
DIRECTOR: Simplify palette transformations
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r-- | engines/director/cast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp index b5fab8c1fa..804bd58a8a 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -257,8 +257,8 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { _shapeType = static_cast<ShapeType>(stream.readByte()); _initialRect = Score::readRect(stream); _pattern = stream.readUint16BE(); - _fgCol = paletteTrans((128 + stream.readByte()) & 0xff); // -128 -> 0, 127 -> 256 - _bgCol = paletteTrans((128 + stream.readByte()) & 0xff); + _fgCol = (127 - stream.readByte()) & 0xff; // -128 -> 0, 127 -> 256 + _bgCol = (127 - stream.readByte()) & 0xff; _fillType = stream.readByte(); _lineThickness = stream.readByte(); _lineDirection = stream.readByte(); |