From cb48575c91071421f89ea394094072995a6e2c9b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 2 Aug 2017 10:24:35 +0200 Subject: WAGE: Switched console rendering to MacTextWindow --- engines/wage/gui-console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/wage/gui-console.cpp') diff --git a/engines/wage/gui-console.cpp b/engines/wage/gui-console.cpp index c2f1753ced..e86e6ab130 100644 --- a/engines/wage/gui-console.cpp +++ b/engines/wage/gui-console.cpp @@ -81,6 +81,9 @@ void Gui::clearOutput() { } void Gui::appendText(const char *s) { +#ifdef USE_MACTEXTWINDOW + _consoleWindow->appendText(s, getConsoleMacFont()); +#else Common::String str(s); _consoleDirty = true; @@ -107,9 +110,6 @@ void Gui::appendText(const char *s) { // Process last/leftover line _out.push_back(tmp); flowText(tmp); - -#ifdef USE_MACTEXTWINDOW1 - _consoleWindow->appendText(s, getConsoleMacFont()); #endif // USE_MACTEXTWINDOW } @@ -164,7 +164,7 @@ void Gui::reflowText() { for (uint i = 0; i < _out.size(); i++) flowText(_out[i]); -#ifdef USE_MACTEXTWINDOW +#ifdef USE_MACTEXTWINDOW1 // Append _lines content to MacTextWindow after it has // been processed by flowText above _consoleWindow->clearText(); -- cgit v1.2.3