diff options
author | Eugene Sandulenko | 2016-02-04 18:06:08 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:00 +0100 |
commit | d56590784fb8f41fca25d6be184d6d71f9eed28c (patch) | |
tree | 058e1120e6e84861decf75486fab0cae288d9a57 /engines/wage | |
parent | b24be406d27373b5ea1a041eceba4dfea42cbb82 (diff) | |
download | scummvm-rg350-d56590784fb8f41fca25d6be184d6d71f9eed28c.tar.gz scummvm-rg350-d56590784fb8f41fca25d6be184d6d71f9eed28c.tar.bz2 scummvm-rg350-d56590784fb8f41fca25d6be184d6d71f9eed28c.zip |
WAGE: Fix text end marking
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/gui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 4f1bc98269..970fbcd2d3 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -517,7 +517,7 @@ void Gui::renderConsole(Graphics::Surface *g, Common::Rect &r) { if (line == _selectionEndY) { SWAP(color1, color2); - midpoint = _selectionEndY; + midpoint = _selectionEndX; } Common::String beg(_lines[line].c_str(), &_lines[line].c_str()[midpoint]); @@ -745,14 +745,15 @@ void Gui::startMarking(int x, int y) { _inTextSelection = true; - warning("x: %d y: %d", _selectionStartX, _selectionStartY); + warning("x: %d y: %d -> %d %d", x, y, _selectionStartX, _selectionStartY); } void Gui::updateTextSelection(int x, int y) { - warning("x: %d y: %d", x, y); _selectionEndY = calcTextY(y); _selectionEndX = calcTextX(x, _selectionStartY); + warning("x: %d y: %d -> %d %d", x, y, _selectionEndX, _selectionEndY); + _consoleFullRedraw = true; } |