diff options
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r-- | engines/director/cast.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp index 0ee5a8f15c..564460b640 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -173,8 +173,30 @@ TextCast::TextCast(Common::ReadStreamEndian &stream, uint16 version) { fontSize = stream.readUint16(); textSlant = 0; } else { + fontId = 1; + fontSize = 12; + + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + uint16 skip = stream.readUint16(); + for (int i = 0; i < skip; i++) + stream.readUint32(); + + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + stream.readUint32(); + initialRect = Score::readRect(stream); boundingRect = Score::readRect(stream); + + stream.readUint32(); + stream.readUint16(); + stream.readUint16(); } modified = 0; @@ -193,6 +215,14 @@ void TextCast::importStxt(const Stxt *stxt) { _ftext = stxt->_ftext; } +void TextCast::importRTE(byte* text) { + //assert(rteList.size() == 3); + //child0 is probably font data. + //child1 is the raw text. + _ftext = Common::String((char*)text); + //child2 is positional? +} + ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { if (version < 4) { /*byte flags = */ stream.readByte(); |