aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-03 15:34:26 +0100
committerEugene Sandulenko2016-01-03 15:34:26 +0100
commitb25b2ec8ad98a3c19919095dd2dcc9ca80cccdd5 (patch)
treea9ebec767227e1e4753be21f77944342b7af04df /engines/wage
parent74cbf5477da7418e94b5ba8a5222a2cae0c16a99 (diff)
downloadscummvm-rg350-b25b2ec8ad98a3c19919095dd2dcc9ca80cccdd5.tar.gz
scummvm-rg350-b25b2ec8ad98a3c19919095dd2dcc9ca80cccdd5.tar.bz2
scummvm-rg350-b25b2ec8ad98a3c19919095dd2dcc9ca80cccdd5.zip
WAGE: Implement immediate text rendering to match original
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/gui.cpp4
-rw-r--r--engines/wage/wage.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index f9df59f12e..650a03767b 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -262,6 +262,7 @@ void Gui::draw() {
// Blit to screen
g_system->copyRectToScreen(_screen.getPixels(), _screen.pitch, 0, 0, _screen.w, _screen.h);
+ g_system->updateScreen();
}
void Gui::drawBox(Graphics::Surface *g, int x, int y, int w, int h) {
@@ -399,6 +400,9 @@ void Gui::flowText(String &str) {
if (pos != _scrollPos)
_consoleFullRedraw = true;
+
+ if (!_engine->_temporarilyHidden)
+ draw();
}
void Gui::renderConsole(Graphics::Surface *g, Common::Rect &r) {
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 5ab49eaba0..3269039a1e 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -109,10 +109,9 @@ Common::Error WageEngine::run() {
_temporarilyHidden = true;
performInitialSetup();
- _temporarilyHidden = false;
-
Common::String input("look");
processTurn(&input, NULL);
+ _temporarilyHidden = false;
while (true) {
processEvents();