aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-04 07:50:15 +0200
committerEugene Sandulenko2017-08-04 21:54:20 +0200
commitc7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866 (patch)
tree24b7e582ca76d820f4b7c4870e0dae0bb8627821 /graphics/macgui/mactext.cpp
parent410efd9ff5a16821691efa29c438aeea4be8d497 (diff)
downloadscummvm-rg350-c7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866.tar.gz
scummvm-rg350-c7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866.tar.bz2
scummvm-rg350-c7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866.zip
GRAPHICS: MACGUI: Fix end line text selection hihglight
Diffstat (limited to 'graphics/macgui/mactext.cpp')
-rw-r--r--graphics/macgui/mactext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 4647f9c300..d3a612c22c 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -455,7 +455,7 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) {
(*row)--;
if (y > _textMaxHeight)
- x = getLineWidth(*row);
+ x = _surface->w;
*sy = _textLines[*row].y;