Skip to content

Commit

Permalink
WAGE: Fix console output for empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 1, 2016
1 parent 02a8291 commit c65f15e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/wage/gui.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c65f15e

Please sign in to comment.