aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-06 22:42:34 +0200
committerEugene Sandulenko2017-08-06 22:43:09 +0200
commit8b81bb2faabde88d6d00e938360f21f2c97ad774 (patch)
tree50ad645a055506aec66ef02ebbaed34b4c6befc7 /graphics/macgui
parent89457af33e7e1682e6e8a9b9ba758ab2677ec936 (diff)
downloadscummvm-rg350-8b81bb2faabde88d6d00e938360f21f2c97ad774.tar.gz
scummvm-rg350-8b81bb2faabde88d6d00e938360f21f2c97ad774.tar.bz2
scummvm-rg350-8b81bb2faabde88d6d00e938360f21f2c97ad774.zip
GRAPHICS: MACGUI: Better handling for displaying selection end
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/mactextwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index 854675de98..c56506c8da 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -195,7 +195,7 @@ void MacTextWindow::drawSelection() {
numLines = _mactext->getLineHeight(s.startRow);
x1 = s.startX;
}
- if (y + _scrollPos == lastLineStart + 1) {
+ if (y + _scrollPos > lastLineStart) {
numLines = _mactext->getLineHeight(s.endRow);
x2 = s.endX;
}
@@ -364,6 +364,10 @@ void MacTextWindow::updateTextSelection(int x, int y) {
_mactext->getRowCol(x, y, &_selectedText.endX, &_selectedText.endY, &_selectedText.endRow, &_selectedText.endCol);
+ debug(3, "s: %d,%d (%d, %d) e: %d,%d (%d, %d)", _selectedText.startX, _selectedText.startY,
+ _selectedText.startRow, _selectedText.startCol, _selectedText.endX,
+ _selectedText.endY, _selectedText.endRow, _selectedText.endCol);
+
_contentIsDirty = true;
}