mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 20:07:11 +00:00
GRAPHICS: MACGUI: Better handling for displaying selection end
This commit is contained in:
parent
89457af33e
commit
8b81bb2faa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user