Commit 860c4fe7 authored by Alexandre Julliard's avatar Alexandre Julliard

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

GetRandomRgn if the Windows version is win9x.
parent 3f611ee0
......@@ -157,6 +157,13 @@ HRESULT WINAPI Main_DirectDrawClipper_GetClipList(
HRGN hRgn = CreateRectRgn(0,0,0,0);
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)
{
HRGN hRgnClip = CreateRectRgn(lpRect->left, lpRect->top,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment