mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
ScrollDC From my notes 08/16/2003:
- Wine testing was not enough. If dx & dy are zero and hrgn and lprc are used or not zero. The Rect for hrgn and lprc are set zero w/o NtUserScrollDC being called. It just returns TRUE. - If HDC is zero it will return FALSE and not call NtUserScrollDC. svn path=/trunk/; revision=29893
This commit is contained in:
parent
5d397e4214
commit
e40b261ed9
|
@ -185,6 +185,16 @@ BOOL STDCALL
|
|||
ScrollDC(HDC hDC, int dx, int dy, CONST RECT *lprcScroll, CONST RECT *lprcClip,
|
||||
HRGN hrgnUpdate, LPRECT lprcUpdate)
|
||||
{
|
||||
if (hDC == NULL) return FALSE;
|
||||
|
||||
if (dx == 0 && dy == 0)
|
||||
{
|
||||
if (hrgnUpdate) SetRectRgn(hrgnUpdate, 0, 0, 0, 0);
|
||||
if (lprcUpdate) lprcUpdate->left = lprcUpdate->right =
|
||||
lprcUpdate->top = lprcUpdate->bottom = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return NtUserScrollDC(hDC, dx, dy, lprcScroll, lprcClip, hrgnUpdate,
|
||||
lprcUpdate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue