Implement all IDirectDraw stubs, C&C now starts up on Wine

This commit is contained in:
Toni Spets 2010-10-23 19:25:02 +03:00
parent 023794ae97
commit e07abb7e18
5 changed files with 106 additions and 22 deletions

View file

@ -70,10 +70,8 @@ fakeDirectDrawClipper ciface =
null // ddraw_clipper_SetHwnd
};
HRESULT ddraw_CreateClipper(void *_This, DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter )
HRESULT __stdcall ddraw_CreateClipper(IDirectDrawImpl *This, DWORD dwFlags, LPDIRECTDRAWCLIPPER FAR *lplpDDClipper, IUnknown FAR *pUnkOuter )
{
fakeDirectDrawClipperObject *This = (fakeDirectDrawClipperObject *)_This;
printf("DirectDraw::CreateClipper(This=%p, dwFlags=%d, DDClipper=%p, unkOuter=%p)\n", This, (int)dwFlags, lplpDDClipper, pUnkOuter);
fakeDirectDrawClipperObject *Clipper = (fakeDirectDrawClipperObject *)malloc(sizeof(fakeDirectDrawClipperObject));