Module: wine Branch: master Commit: 8ab0570d0247de4e24596cf2dea5962e51139cf2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8ab0570d0247de4e24596cf2de...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Mon Dec 15 04:31:25 2008 -0500
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.
---
dlls/riched20/editor.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 0d3010a..16f2771 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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;