From 1b0e5467456bfe452217c09af7494861480c4523 Mon Sep 17 00:00:00 2001 From: Dmitry Iskrich Date: Fri, 1 Jul 2016 20:04:25 +0300 Subject: DIRECTOR: Assignment some TextCast unknows --- engines/director/score.cpp | 8 +++++--- engines/director/score.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'engines/director') diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 25154ccf8a..e5857f2e95 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -664,7 +664,9 @@ TextCast::TextCast(Common::SeekableSubReadStreamEndian &stream) { textType = static_cast(stream.readByte()); textAlign = static_cast(stream.readUint16()); stream.skip(6); //palinfo - /*uint32 unk1 = */ stream.readUint32(); + //for now, just supposition + fontId = stream.readUint32(); + initialRect = Score::readRect(stream); textShadow = static_cast(stream.readByte()); byte flags = stream.readByte(); @@ -674,8 +676,8 @@ TextCast::TextCast(Common::SeekableSubReadStreamEndian &stream) { textFlags.push_back(kTextFlagAutoTab); if (flags & 0x4) textFlags.push_back(kTextFlagDoNotWrap); - - /*uint16 unk2 =*/ stream.readUint16(); + //again supposition + fontSize = stream.readUint16(); } ShapeCast::ShapeCast(Common::SeekableSubReadStreamEndian &stream) { diff --git a/engines/director/score.h b/engines/director/score.h index f3efd56482..b6eb96803a 100644 --- a/engines/director/score.h +++ b/engines/director/score.h @@ -234,6 +234,8 @@ struct TextCast : Cast { SizeType gutterSize; SizeType boxShadow; + uint32 fontId; + uint16 fontSize; TextType textType; TextAlignType textAlign; SizeType textShadow; -- cgit v1.2.3