diff options
author | VelocityRa | 2017-04-09 00:05:56 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-17 23:45:22 +0200 |
commit | 3a2ce122888cad6656f6b67aa4dc637a8e262d5e (patch) | |
tree | d1bd0895fae996c9659cf7a5b6dca48352f27d97 /engines/wage/wage.cpp | |
parent | a169c7efb3c80dafc9cfc2dccf2c31fcffe5be11 (diff) | |
download | scummvm-rg350-3a2ce122888cad6656f6b67aa4dc637a8e262d5e.tar.gz scummvm-rg350-3a2ce122888cad6656f6b67aa4dc637a8e262d5e.tar.bz2 scummvm-rg350-3a2ce122888cad6656f6b67aa4dc637a8e262d5e.zip |
WAGE: Fix resizing and text selection bug
Revise/Simplify old optional text rendering
Set things up a bit for selected text rendering
Add MacTextWindow::clearText and MacTextWindow::setSelection
Add MacTextWindow::appendText variant that accepts a MacFont
Diffstat (limited to 'engines/wage/wage.cpp')
-rw-r--r-- | engines/wage/wage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 3419a86fbd..54d821f17d 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -133,6 +133,7 @@ Common::Error WageEngine::run() { _gui->regenCommandsMenu(); _gui->regenWeaponsMenu(); } + Common::String input("look"); processTurn(&input, NULL); _temporarilyHidden = false; @@ -312,6 +313,10 @@ void WageEngine::performInitialSetup() { if (!playerPlaced) { _world->move(_world->_player, _world->getRandomScene()); } + + // Set the console window's dimensions early here because + // flowText() that needs them gets called before they're set + _gui->_consoleWindow->setDimensions(*_world->_player->_currentScene->_textBounds); } void WageEngine::wearObjs(Chr* chr) { |