mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
GRAPHICS: MACGUI: fix cursor drawing when we scroll the mactext
This commit is contained in:
parent
777a8c1d17
commit
5e734b0ca0
@ -2038,7 +2038,7 @@ void MacText::updateCursorPos() {
|
||||
else if (_textAlignment == kTextAlignCenter)
|
||||
alignOffset = (_textMaxWidth / 2) - (getLineWidth(_cursorRow) / 2);
|
||||
|
||||
_cursorY = _textLines[_cursorRow].y + offset.y - 2;
|
||||
_cursorY = _textLines[_cursorRow].y + offset.y - 2 - _scrollPos;
|
||||
_cursorX = getLineWidth(_cursorRow, false, _cursorCol) + alignOffset + offset.x - 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user