aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-04 11:12:33 +0100
committerEugene Sandulenko2016-02-14 17:13:00 +0100
commit9d9e769b5e8bd70a00a3e5bde9ce6b3ab95ee6ae (patch)
tree03cb6da8e9b103197b6c4180357f6545c9909111
parentb0941e247caca0d6c88689f524d3eeb35ad27645 (diff)
downloadscummvm-rg350-9d9e769b5e8bd70a00a3e5bde9ce6b3ab95ee6ae.tar.gz
scummvm-rg350-9d9e769b5e8bd70a00a3e5bde9ce6b3ab95ee6ae.tar.bz2
scummvm-rg350-9d9e769b5e8bd70a00a3e5bde9ce6b3ab95ee6ae.zip
WAGE: Mark full lines of selected text
-rw-r--r--engines/wage/gui.cpp6
1 files changed, 5 insertions, 1 deletions
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)