refactoring
This commit is contained in:
parent
95afd87656
commit
baaa87b18f
62 changed files with 7231 additions and 6636 deletions
21
src/ddclipper.c
Normal file
21
src/ddclipper.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include "IDirectDrawClipper.h"
|
||||
#include "ddclipper.h"
|
||||
#include "debug.h"
|
||||
|
||||
|
||||
HRESULT dd_CreateClipper(DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter )
|
||||
{
|
||||
if (!lplpDDClipper)
|
||||
return DDERR_INVALIDPARAMS;
|
||||
|
||||
IDirectDrawClipperImpl *c = (IDirectDrawClipperImpl *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectDrawClipperImpl));
|
||||
c->lpVtbl = &g_ddc_vtbl;
|
||||
dprintf(" Clipper = %p\n", c);
|
||||
*lplpDDClipper = (LPDIRECTDRAWCLIPPER)c;
|
||||
|
||||
IDirectDrawClipper_AddRef(c);
|
||||
|
||||
return DD_OK;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue