aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index 74315f7a09..4f7261155f 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -319,7 +319,7 @@ void Gui::paintBorder(Graphics::Surface *g, int x, int y, int width, int height,
enum {
kConWOverlap = 20,
kConHOverlap = 20,
- kConWPadding = 4,
+ kConWPadding = 3,
kConHPadding = 4,
kConOverscan = 3,
kLineSpacing = 0
@@ -375,6 +375,9 @@ void Gui::renderConsole(Graphics::Surface *g, int x, int y, int width, int heigh
font->wordWrapText(_out[i], textW, wrappedLines);
+ if (wrappedLines.size() == 0) // Sometimes we have empty lines
+ _lines.push_back("");
+
for (Common::StringArray::const_iterator j = wrappedLines.begin(); j != wrappedLines.end(); ++j)
_lines.push_back(*j);
}