Skip to content

Commit

Permalink
WAGE: Started processing of input text from MacTextWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 1, 2017
1 parent 81c26ca commit 5149226
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions engines/wage/gui-console.cpp
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions engines/wage/wage.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 5149226

Please sign in to comment.