aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-31 20:02:14 +0200
committerEugene Sandulenko2017-08-01 10:42:22 +0200
commit5149226255279c8e417a3bb9d1a473530c423117 (patch)
treed6425d17fb341169b4cf48a5eebcceb31b2fbb0f /engines
parent81c26caaf86f439ed3f1699f13252afd45c52e18 (diff)
downloadscummvm-rg350-5149226255279c8e417a3bb9d1a473530c423117.tar.gz
scummvm-rg350-5149226255279c8e417a3bb9d1a473530c423117.tar.bz2
scummvm-rg350-5149226255279c8e417a3bb9d1a473530c423117.zip
WAGE: Started processing of input text from MacTextWindow
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/gui-console.cpp4
-rw-r--r--engines/wage/wage.cpp6
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/wage/gui-console.cpp b/engines/wage/gui-console.cpp
index e7598839e8..5b61318afb 100644
--- a/engines/wage/gui-console.cpp
+++ b/engines/wage/gui-console.cpp
@@ -330,9 +330,7 @@ void Gui::renderConsole(Graphics::ManagedSurface *g, const Common::Rect &r) {
rr.bottom = _screen.h - 1;
#ifdef USE_MACTEXTWINDOW
- _consoleWindow->drawText(&_console, 0, 0,
- boundsR.width(), boundsR.height(),
- boundsR.left + 7, boundsR.top + 7);
+ _consoleWindow->drawText(&_console, 0, 0, boundsR.width(), boundsR.height(), boundsR.left + 7, boundsR.top + 7);
#endif // USE_MACTEXTWINDOW
g->copyRectToSurface(_console, xcon, ycon, boundsR);
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 62051859cc..64965de966 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -177,6 +177,12 @@ void WageEngine::processEvents() {
break;
case Common::KEYCODE_RETURN:
+ _inputText = _gui->_consoleWindow->getInput();
+
+ _gui->appendText(_inputText.c_str());
+
+ _gui->_consoleWindow->clearInput();
+
if (_inputText.empty())
break;