From 8035e022fdefbf5ebbdd9a92d79fe7c3f1a76bdb Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 29 Jun 2011 18:39:58 +0200 Subject: fixed cursor positioning by mouse in edit boxes --- src/game/client/components/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/components/menus.cpp') diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 9bd59730..d6d3d9fc 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -209,7 +209,7 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS for(int i = 1; i <= Len; i++) { - if(TextRender()->TextWidth(0, FontSize, pStr, i) - *Offset + 10 > MxRel) + if(TextRender()->TextWidth(0, FontSize, pStr, i) - *Offset > MxRel) { s_AtIndex = i - 1; break; -- cgit 1.4.1