diff options
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/stxt.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/director/stxt.cpp b/engines/director/stxt.cpp index 5d5515b4c6..071a629cb6 100644 --- a/engines/director/stxt.cpp +++ b/engines/director/stxt.cpp @@ -47,22 +47,22 @@ Stxt::Stxt(Common::SeekableSubReadStreamEndian &textStream) { while (formattingCount) { uint32 formatStartOffset = textStream.readUint32(); - uint16 unk1f = textStream.readUint16(); - uint16 unk2f = textStream.readUint16(); + uint16 height = textStream.readUint16(); + uint16 ascent = textStream.readUint16(); _fontId = textStream.readUint16(); _textSlant = textStream.readByte(); - byte unk3f = textStream.readByte(); + byte padding = textStream.readByte(); _fontSize = textStream.readUint16(); _palinfo1 = textStream.readUint16(); _palinfo2 = textStream.readUint16(); _palinfo3 = textStream.readUint16(); - debugC(3, kDebugText, "Stxt init: formattingCount: %u, formatStartOffset: %d, unk1: %d unk2: %d, fontId: %d, textSlant: %d", - formattingCount, formatStartOffset, unk1f, unk2f, _fontId, _textSlant); + debugC(3, kDebugText, "Stxt init: formattingCount: %u, formatStartOffset: %d, height: %d ascent: %d, fontId: %d, textSlant: %d", + formattingCount, formatStartOffset, height, ascent, _fontId, _textSlant); - debugC(3, kDebugText, " unk3: %d, fontSize: %d, p0: %x p1: %x p2: %x", unk3f, _fontSize, _palinfo1, _palinfo2, _palinfo3); + debugC(3, kDebugText, " fontSize: %d, p0: %x p1: %x p2: %x", _fontSize, _palinfo1, _palinfo2, _palinfo3); assert(prevPos <= formatStartOffset); // If this is triggered, we have to implement sorting @@ -81,9 +81,9 @@ Stxt::Stxt(Common::SeekableSubReadStreamEndian &textStream) { debugCN(4, kDebugText, "*"); - _ftext += Common::String::format("\001\015%c%c%c%c%c%c%c%c%c%c%c%c", + _ftext += Common::String::format("\001\015%c%c%c%c%c%c%c%c%c%c%c", (_fontId >> 8) & 0xff, _fontId & 0xff, - _textSlant & 0xff, unk3f & 0xff, + _textSlant & 0xff, (_fontSize >> 8) & 0xff, _fontSize & 0xff, (_palinfo1 >> 8) & 0xff, _palinfo1 & 0xff, (_palinfo2 >> 8) & 0xff, _palinfo2 & 0xff, |