Implement stub surface Blt, Lock and Unlock

This commit is contained in:
Toni Spets 2010-10-16 22:10:25 +03:00
parent 437b3e9197
commit 4ffda7b73f
3 changed files with 190 additions and 19 deletions

13
main.c
View file

@ -72,19 +72,6 @@ HRESULT ddraw_CreatePalette(void *This, LPPALETTEENTRY DDColorArray, LPDIRECTDRA
return DD_OK;
}
HRESULT ddraw_CreateSurface(void *This, LPDDSURFACEDESC DDSurfaceDesc, LPDIRECTDRAWSURFACE FAR *DDSurface, IUnknown FAR * unkOuter)
{
printf("DirectDraw::CreateSurface(This=%p, DDSurfaceDesc=%p, DDSurface=%p, unkOuter=%p)\n", This, DDSurfaceDesc, DDSurface, unkOuter);
fakeDirectDrawSurfaceObject *Surface = (fakeDirectDrawSurfaceObject *)malloc(sizeof(fakeDirectDrawSurfaceObject));
Surface->Ref = 1;
Surface->Functions = &siface;
printf(" Surface = %p\n", Surface);
*DDSurface = (LPDIRECTDRAWSURFACE)Surface;
return DD_OK;
}
HRESULT ddraw_SetCooperativeLevel(void *This, HWND hWnd, DWORD dwFlags)
{
printf("DirectDraw::SetCooperativeLevel(This=%p, hWnd=0x%08X, dwFlags=0x%08X)\n", This, (unsigned int)hWnd, (unsigned int)dwFlags);