diff options
author | Eugene Sandulenko | 2017-08-04 08:00:56 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-04 21:54:20 +0200 |
commit | 1241ada63a1117c44b0df7d87cb0ad9c863fd837 (patch) | |
tree | 5a3b600b0851aa9d48f5e9c7174f98e29fb81945 /graphics | |
parent | c7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866 (diff) | |
download | scummvm-rg350-1241ada63a1117c44b0df7d87cb0ad9c863fd837.tar.gz scummvm-rg350-1241ada63a1117c44b0df7d87cb0ad9c863fd837.tar.bz2 scummvm-rg350-1241ada63a1117c44b0df7d87cb0ad9c863fd837.zip |
GRAPHICS: MACGUI: Fixed bug with column detection in text selection
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/macgui/mactext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index d3a612c22c..88fe6421a5 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -486,7 +486,7 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) { for (int i = str.size(); i >= 0; i--) { int strw = _textLines[*row].chunks[chunk].getFont()->getStringWidth(str); if (strw + pwidth < x) { - *col = mcol + i; + *col = pmcol + i; *sx = strw + pwidth; break; } |