aboutsummaryrefslogtreecommitdiff
path: root/engines/director/cast.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-25 14:52:13 +0100
committerEugene Sandulenko2019-12-25 14:52:13 +0100
commit197bc172164152a7e3af4f7048a2c0ef8fc9bf3e (patch)
tree7b5689d1792b765f5e7f2100149b5c9b1e479692 /engines/director/cast.cpp
parent3f392ca564be429715db75e89803dd6aa431798e (diff)
downloadscummvm-rg350-197bc172164152a7e3af4f7048a2c0ef8fc9bf3e.tar.gz
scummvm-rg350-197bc172164152a7e3af4f7048a2c0ef8fc9bf3e.tar.bz2
scummvm-rg350-197bc172164152a7e3af4f7048a2c0ef8fc9bf3e.zip
DIRECTOR: Correctly use ink information for sprites
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r--engines/director/cast.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index 804bd58a8a..7c7604b21f 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -251,6 +251,8 @@ void TextCast::setText(const char *text) {
ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) {
byte flags, unk1;
+ _ink = kInkTypeCopy;
+
if (version < 4) {
flags = stream.readByte();
unk1 = stream.readByte();
@@ -260,6 +262,7 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) {
_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();
_lineDirection = stream.readByte();
} else {