diff options
-rw-r--r-- | engines/director/frame.cpp | 6 | ||||
-rw-r--r-- | graphics/macgui/mactext.cpp | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index d1a55fdd1f..693e477ab0 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -863,8 +863,12 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo ftext += '\001'; prevPos++; + + debugCN(4, kDebugText, "%c", f); } + debugCN(4, kDebugText, "*"); + ftext += Common::String::format("\001\015%c%c%c%c%c%c%c%c%c%c%c%c", (textCast->fontId >> 8) & 0xff, textCast->fontId & 0xff, textCast->textSlant & 0xff, unk3f & 0xff, @@ -878,6 +882,8 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteId, Commo ftext += text; + debugC(4, kDebugText, "%s", text.c_str()); + uint16 boxShadow = (uint16)textCast->boxShadow; uint16 borderSize = (uint16)textCast->borderSize; uint16 padding = (uint16)textCast->gutterSize; diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 8644bb9a97..c1704c12d7 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -79,6 +79,15 @@ void MacText::splitString(Common::String &str) { bool nextChunk = false; while (*s) { + for (uint i = 0; i < _textLines.size(); i++) { + debugN(7, "%2d ", i); + + for (uint j = 0; j < _textLines[i].chunks.size(); j++) + debugN(7, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, _textLines[i].chunks[j].text.c_str()); + + debug(7, " --> %c %d", (*s > 0x20 ? *s : ' '), (byte)*s); + } + if (*s == '\001') { s++; if (*s == '\001') { |