WAGE: Fix console output for empty lines

This commit is contained in:
Eugene Sandulenko 2016-01-01 02:58:34 +01:00
parent 02a8291c5b
commit c65f15e7e4

View file

@ -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);
}