From c65f15e7e4011f50b673e5c1c781fd64c689170e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 1 Jan 2016 02:58:34 +0100 Subject: WAGE: Fix console output for empty lines --- engines/wage/gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') 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); } -- cgit v1.2.3