mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
WAGE: Started processing of input text from MacTextWindow
This commit is contained in:
parent
81c26caaf8
commit
5149226255
@ -330,9 +330,7 @@ void Gui::renderConsole(Graphics::ManagedSurface *g, const Common::Rect &r) {
|
|||||||
rr.bottom = _screen.h - 1;
|
rr.bottom = _screen.h - 1;
|
||||||
|
|
||||||
#ifdef USE_MACTEXTWINDOW
|
#ifdef USE_MACTEXTWINDOW
|
||||||
_consoleWindow->drawText(&_console, 0, 0,
|
_consoleWindow->drawText(&_console, 0, 0, boundsR.width(), boundsR.height(), boundsR.left + 7, boundsR.top + 7);
|
||||||
boundsR.width(), boundsR.height(),
|
|
||||||
boundsR.left + 7, boundsR.top + 7);
|
|
||||||
#endif // USE_MACTEXTWINDOW
|
#endif // USE_MACTEXTWINDOW
|
||||||
|
|
||||||
g->copyRectToSurface(_console, xcon, ycon, boundsR);
|
g->copyRectToSurface(_console, xcon, ycon, boundsR);
|
||||||
|
@ -177,6 +177,12 @@ void WageEngine::processEvents() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Common::KEYCODE_RETURN:
|
case Common::KEYCODE_RETURN:
|
||||||
|
_inputText = _gui->_consoleWindow->getInput();
|
||||||
|
|
||||||
|
_gui->appendText(_inputText.c_str());
|
||||||
|
|
||||||
|
_gui->_consoleWindow->clearInput();
|
||||||
|
|
||||||
if (_inputText.empty())
|
if (_inputText.empty())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user