From 860c4fe7ded71893c384d8f1bba79eb5646e66ce Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 27 Sep 2005 09:34:24 +0000 Subject: [PATCH] The clip list is in screen coordinates so we need to map the result of GetRandomRgn if the Windows version is win9x. --- dlls/ddraw/clipper.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/ddraw/clipper.c b/dlls/ddraw/clipper.c index eac48b3cce6..d1109b38746 100644 --- a/dlls/ddraw/clipper.c +++ b/dlls/ddraw/clipper.c @@ -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,