adjust clipper logging and make clipper less strict
This commit is contained in:
parent
9674705685
commit
94c718b5b1
4 changed files with 26 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue