From 6fbb82f85be523c6433bdffca86b73544d108422 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 1 Feb 2017 11:23:58 +0100 Subject: GRAPHICS: Add more debug output to MacText --- graphics/macgui/mactext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'graphics') 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') { -- cgit v1.2.3