add GetHWnd and SetHWnd clipper functions

This commit is contained in:
FunkyFr3sh 2022-09-26 22:22:15 +02:00
parent 60a956e715
commit a8b3b1c736
4 changed files with 36 additions and 8 deletions

View file

@ -5,6 +5,23 @@
#include "debug.h"
HRESULT ddc_GetHWnd(IDirectDrawClipperImpl* This, HWND FAR* lphWnd)
{
if (!lphWnd)
return DDERR_INVALIDPARAMS;
*lphWnd = This->hwnd;
return DD_OK;
}
HRESULT ddc_SetHWnd(IDirectDrawClipperImpl* This, DWORD dwFlags, HWND hWnd)
{
This->hwnd = hWnd;
return DD_OK;
}
HRESULT dd_CreateClipper(DWORD dwFlags, IDirectDrawClipperImpl** lplpDDClipper, IUnknown FAR* pUnkOuter)
{
if (!lplpDDClipper)