mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
WAGE: Mark full lines of selected text
This commit is contained in:
parent
b0941e247c
commit
9d9e769b5e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user