diff options
author | Eugene Sandulenko | 2017-02-01 11:23:58 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-01 18:36:25 +0100 |
commit | 6fbb82f85be523c6433bdffca86b73544d108422 (patch) | |
tree | d4009b19ffbe53a4c1be6c67ac9ed8d33c899061 | |
parent | 3dc565df2627156f154b121b6c5b4b364fbfd1c0 (diff) | |
download | scummvm-rg350-6fbb82f85be523c6433bdffca86b73544d108422.tar.gz scummvm-rg350-6fbb82f85be523c6433bdffca86b73544d108422.tar.bz2 scummvm-rg350-6fbb82f85be523c6433bdffca86b73544d108422.zip |
GRAPHICS: Add more debug output to MacText
-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') { |