diff options
author | Scott Percival | 2020-01-04 22:04:43 +0800 |
---|---|---|
committer | Scott Percival | 2020-01-04 22:49:14 +0800 |
commit | b32d0f2ad99b526d72d47523eb642f8bc70fc91a (patch) | |
tree | 2dc23bb5869844f9d005fbd343566dd1bb15267c /engines/director/cast.cpp | |
parent | 0634762ed6eb448a11a215a4b0323b1430ba3f08 (diff) | |
download | scummvm-rg350-b32d0f2ad99b526d72d47523eb642f8bc70fc91a.tar.gz scummvm-rg350-b32d0f2ad99b526d72d47523eb642f8bc70fc91a.tar.bz2 scummvm-rg350-b32d0f2ad99b526d72d47523eb642f8bc70fc91a.zip |
DIRECTOR: Render shapes with transparency
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 dc1170b611..1d22da7228 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -288,8 +288,8 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { _shapeType = static_cast<ShapeType>(stream.readByte()); _initialRect = Score::readRect(stream); _pattern = stream.readUint16BE(); - _fgCol = (uint8)stream.readByte(); - _bgCol = (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(); |