mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
[COMCTL32] Edit: Fix caret and scroll position
Based on patch by JIRA contributor 'I_Kill_Bugs'. CORE-15780
This commit is contained in:
parent
048c8c1605
commit
cd7011388e
1 changed files with 4 additions and 0 deletions
|
@ -1050,7 +1050,11 @@ static LRESULT EDIT_EM_PosFromChar(EDITSTATE *es, INT index, BOOL after_wrap)
|
||||||
x -= es->x_offset;
|
x -= es->x_offset;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#ifdef __REACTOS__ /* CORE-15780 */
|
||||||
|
x = (lw > 0 ? es->x_offset : x - es->x_offset);
|
||||||
|
#else
|
||||||
x = es->x_offset;
|
x = es->x_offset;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (es->style & ES_RIGHT)
|
if (es->style & ES_RIGHT)
|
||||||
x = w - (lw - x);
|
x = w - (lw - x);
|
||||||
|
|
Loading…
Reference in a new issue