Skip to content

Commit

Permalink
WAGE: Mark full lines of selected text
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent b0941e2 commit 9d9e769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/wage/gui.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 9d9e769

Please sign in to comment.