The clip list is in screen coordinates so we need to map the result of

GetRandomRgn if the Windows version is win9x.
This commit is contained in:
Alexandre Julliard 2005-09-27 09:34:24 +00:00
parent 3f611ee0c9
commit 860c4fe7de
1 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,13 @@ HRESULT WINAPI Main_DirectDrawClipper_GetClipList(
HRGN hRgn = CreateRectRgn(0,0,0,0); HRGN hRgn = CreateRectRgn(0,0,0,0);
if (GetRandomRgn(hDC, hRgn, SYSRGN)) if (GetRandomRgn(hDC, hRgn, SYSRGN))
{ {
if (GetVersion() & 0x80000000)
{
/* map region to screen coordinates */
POINT org;
GetDCOrgEx( hDC, &org );
OffsetRgn( hRgn, org.x, org.y );
}
if (lpRect) if (lpRect)
{ {
HRGN hRgnClip = CreateRectRgn(lpRect->left, lpRect->top, HRGN hRgnClip = CreateRectRgn(lpRect->left, lpRect->top,