adjust clipper logging and make clipper less strict

This commit is contained in:
FunkyFr3sh 2024-05-28 00:33:05 +02:00
parent 9674705685
commit 94c718b5b1
4 changed files with 26 additions and 13 deletions

View file

@ -172,6 +172,19 @@ HRESULT ddc_SetHWnd(IDirectDrawClipperImpl* This, DWORD dwFlags, HWND hWnd)
return DD_OK;
}
HRESULT ddc_SetClipRect(IDirectDrawClipperImpl* This, LPRECT lpRect)
{
EnterCriticalSection(&This->cs);
if (This->region)
DeleteObject(This->region);
This->region = CreateRectRgnIndirect(lpRect);
LeaveCriticalSection(&This->cs);
return DD_OK;
}
HRESULT dd_CreateClipper(DWORD dwFlags, IDirectDrawClipperImpl** lplpDDClipper, IUnknown FAR* pUnkOuter)
{
if (!lplpDDClipper)