From cc345bacf48ad2ff392f29b73291e1da5eadb0b8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 15 Dec 2019 10:57:05 +0100 Subject: GRAPHICS: MACGUI: Improved debug output --- graphics/macgui/mactext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/macgui') diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index fc7dec6c5c..fa70861600 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -161,9 +161,9 @@ void MacText::splitString(Common::U32String &str) { 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()); + debugN(7, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, Common::toPrintable(_textLines[i].chunks[j].text.encode()).c_str()); - debug(7, " --> %c %d, '%s'", (*s > 0x20 ? *s : ' '), (byte)*s, tmp.c_str()); + debug(7, " --> %c %d, '%s'", (*s > 0x20 ? *s : ' '), (byte)*s, Common::toPrintable(tmp.encode()).c_str()); } #endif -- cgit v1.2.3