From 9d9e769b5e8bd70a00a3e5bde9ce6b3ab95ee6ae Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 4 Feb 2016 11:12:33 +0100 Subject: WAGE: Mark full lines of selected text --- engines/wage/gui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 25624566f4..fc7ae01f76 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -498,8 +498,12 @@ void Gui::renderConsole(Graphics::Surface *g, Common::Rect &r) { const char *str = _lines[line].c_str(); int color = kColorBlack; - if (line >= _selectionStartY && line <= _selectionEndY) { + if ((line > _selectionStartY && line < _selectionEndY) || + (line > _selectionEndY && line < _selectionStartY)) { color = kColorWhite; + Common::Rect trect(0, y1, _console.w, y1 + _consoleLineHeight); + + Design::drawFilledRect(&_console, trect, kColorBlack, _patterns, kPatternSolid); } if (*str) -- cgit v1.2.3