mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
richedit: Removed an unnecessary call to GetScrollInfo.
The vertical scrollbar state is stored internally within the control, so should be used when possible. This will become more necessary when windowless richedit controls are implemented, and there will no hWnd to pass to GetScrollInfo.
This commit is contained in:
parent
0c8e4b6d02
commit
8ab0570d02
@ -3545,9 +3545,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
|
||||
pt.x += editor->selofs;
|
||||
pt.x++; /* for some reason native offsets x by one */
|
||||
|
||||
si.cbSize = sizeof(si);
|
||||
si.fMask = SIF_POS;
|
||||
if (GetScrollInfo(editor->hWnd, SB_VERT, &si)) pt.y -= si.nPos;
|
||||
pt.y -= editor->vert_si.nPos;
|
||||
si.cbSize = sizeof(si);
|
||||
si.fMask = SIF_POS;
|
||||
if (GetScrollInfo(editor->hWnd, SB_HORZ, &si)) pt.x -= si.nPos;
|
||||
|
Loading…
Reference in New Issue
Block a user