mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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
1 changed files with 10 additions and 0 deletions
|
@ -185,6 +185,16 @@ BOOL STDCALL
|
||||||
ScrollDC(HDC hDC, int dx, int dy, CONST RECT *lprcScroll, CONST RECT *lprcClip,
|
ScrollDC(HDC hDC, int dx, int dy, CONST RECT *lprcScroll, CONST RECT *lprcClip,
|
||||||
HRGN hrgnUpdate, LPRECT lprcUpdate)
|
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,
|
return NtUserScrollDC(hDC, dx, dy, lprcScroll, lprcClip, hrgnUpdate,
|
||||||
lprcUpdate);
|
lprcUpdate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue