Skip to content

Commit

Permalink
Fix input regression introduced by a4a377e
Browse files Browse the repository at this point in the history
Fix #5776
  • Loading branch information
nerzhul committed May 20, 2017
1 parent d176dab commit 1469424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intlGUIEditBox.cpp
Expand Up @@ -1120,8 +1120,8 @@ s32 intlGUIEditBox::getCursorPos(s32 x, s32 y)

if (x < CurrentTextRect.UpperLeftCorner.X)
x = CurrentTextRect.UpperLeftCorner.X;
else if (x > CurrentTextRect.LowerRightCorner.X)
x = CurrentTextRect.LowerRightCorner.X;
else if (x > CurrentTextRect.LowerRightCorner.X + 1)
x = CurrentTextRect.LowerRightCorner.X + 1;

s32 idx = font->getCharacterFromPos(Text.c_str(), x - CurrentTextRect.UpperLeftCorner.X);

Expand Down

0 comments on commit 1469424

Please sign in to comment.