diff options
author | Eugene Sandulenko | 2016-01-01 02:58:34 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-01 02:58:34 +0100 |
commit | c65f15e7e4011f50b673e5c1c781fd64c689170e (patch) | |
tree | c09d42731a0d9edb8dacb409747d9ea04c1f6c52 /engines | |
parent | 02a8291c5bce90b1d6a26580a5522258c97dd1aa (diff) | |
download | scummvm-rg350-c65f15e7e4011f50b673e5c1c781fd64c689170e.tar.gz scummvm-rg350-c65f15e7e4011f50b673e5c1c781fd64c689170e.tar.bz2 scummvm-rg350-c65f15e7e4011f50b673e5c1c781fd64c689170e.zip |
WAGE: Fix console output for empty lines
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/gui.cpp | 5 |
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); } |