From 61ffb6f55361a1343ecab71f203226448a5be207 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 28 Jan 2017 11:23:40 +0100 Subject: DIRECTOR: Added more debug output to text display --- engines/director/frame.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 94bb46201b..402056ad20 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -830,19 +830,23 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo uint16 formattingCount = textStream->readUint16(); while (formattingCount) { uint32 formatStartOffset = textStream->readUint32(); - textStream->readUint16(); - textStream->readUint16(); + uint16 unk1f = textStream->readUint16(); + uint16 unk2f = textStream->readUint16(); textCast->fontId = textStream->readUint16(); textCast->textSlant = textStream->readByte(); - textStream->readByte(); + byte unk3f = textStream->readByte(); textCast->fontSize = textStream->readUint16(); textCast->palinfo1 = textStream->readUint16(); textCast->palinfo2 = textStream->readUint16(); textCast->palinfo3 = textStream->readUint16(); - debugC(3, kDebugText, "renderText: formattingCount: %u formatStartOffset: %d", formattingCount, formatStartOffset); + debugC(3, kDebugText, "renderText: formattingCount: %u, formatStartOffset: %d, unk1: %d unk2: %d, fontId: %d, textSlant: %d", + formattingCount, formatStartOffset, unk1f, unk2f, textCast->fontId, textCast->textSlant); + + debugC(3, kDebugText, " unk3: %d, fontSize: %d, p0: %x p1: %x p2: %x", unk3f, textCast->fontSize, + textCast->palinfo1, textCast->palinfo2, textCast->palinfo3); formattingCount--; } -- cgit v1.2.3