Implement stub SetEntries and GetEntries for surface, suppress Lock and Unlock debug messages
This commit is contained in:
parent
487c98aa1f
commit
cd4ca202b6
2 changed files with 18 additions and 2 deletions
16
palette.c
16
palette.c
|
@ -37,6 +37,18 @@ HRESULT ddraw_CreatePalette(void *This, DWORD dwFlags, LPPALETTEENTRY lpDDColorA
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT ddraw_palette_GetEntries(void *This, DWORD dwFlags, DWORD dwBase, DWORD dwNumEntries, LPPALETTEENTRY lpEntries)
|
||||||
|
{
|
||||||
|
printf("DirectDrawPalette::GetEntries(This=%p, dwFlags=%d, dwBase=%d, dwNumEntries=%d, lpEntries=%p)\n", This, (int)dwFlags, (int)dwBase, (int)dwNumEntries, lpEntries);
|
||||||
|
return DD_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
HRESULT ddraw_palette_SetEntries(void *This, DWORD dwFlags, DWORD dwStartingEntry, DWORD dwCount, LPPALETTEENTRY lpEntries)
|
||||||
|
{
|
||||||
|
printf("DirectDrawPalette::SetEntries(This=%p, dwFlags=%d, dwStartingEntry=%d, dwCount=%d, lpEntries=%p)\n", This, (int)dwFlags, (int)dwStartingEntry, (int)dwCount, lpEntries);
|
||||||
|
return DD_OK;
|
||||||
|
}
|
||||||
|
|
||||||
fakeDirectDrawPalette piface =
|
fakeDirectDrawPalette piface =
|
||||||
{
|
{
|
||||||
/* IUnknown */
|
/* IUnknown */
|
||||||
|
@ -45,7 +57,7 @@ fakeDirectDrawPalette piface =
|
||||||
Release,
|
Release,
|
||||||
/* IDirectDrawPalette */
|
/* IDirectDrawPalette */
|
||||||
null, // ddraw_palette_GetCaps
|
null, // ddraw_palette_GetCaps
|
||||||
null, // ddraw_palette_GetEntries
|
ddraw_palette_GetEntries,
|
||||||
null, // ddraw_palette_Initialize
|
null, // ddraw_palette_Initialize
|
||||||
null // ddraw_palette_SetEntries
|
ddraw_palette_SetEntries
|
||||||
};
|
};
|
||||||
|
|
|
@ -143,6 +143,7 @@ HRESULT ddraw_surface_Lock(void *_This, LPRECT lpDestRect, LPDDSURFACEDESC lpDDS
|
||||||
{
|
{
|
||||||
fakeDirectDrawSurfaceObject *This = (fakeDirectDrawSurfaceObject *)_This;
|
fakeDirectDrawSurfaceObject *This = (fakeDirectDrawSurfaceObject *)_This;
|
||||||
|
|
||||||
|
#if _DEBUG
|
||||||
printf("DirectDrawSurface::Lock(This=%p, lpDestRect=%p, lpDDSurfaceDesc=%p, dwFlags=%d, hEvent=%p)\n", This, lpDestRect, lpDDSurfaceDesc, (int)dwFlags, hEvent);
|
printf("DirectDrawSurface::Lock(This=%p, lpDestRect=%p, lpDDSurfaceDesc=%p, dwFlags=%d, hEvent=%p)\n", This, lpDestRect, lpDDSurfaceDesc, (int)dwFlags, hEvent);
|
||||||
|
|
||||||
if(dwFlags & DDLOCK_SURFACEMEMORYPTR)
|
if(dwFlags & DDLOCK_SURFACEMEMORYPTR)
|
||||||
|
@ -165,6 +166,7 @@ HRESULT ddraw_surface_Lock(void *_This, LPRECT lpDestRect, LPDDSURFACEDESC lpDDS
|
||||||
{
|
{
|
||||||
printf(" dwFlags: DDLOCK_WRITEONLY\n");
|
printf(" dwFlags: DDLOCK_WRITEONLY\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
lpDDSurfaceDesc->dwSize = sizeof(DDSURFACEDESC);
|
lpDDSurfaceDesc->dwSize = sizeof(DDSURFACEDESC);
|
||||||
lpDDSurfaceDesc->dwFlags = DDSD_LPSURFACE;
|
lpDDSurfaceDesc->dwFlags = DDSD_LPSURFACE;
|
||||||
|
@ -175,7 +177,9 @@ HRESULT ddraw_surface_Lock(void *_This, LPRECT lpDestRect, LPDDSURFACEDESC lpDDS
|
||||||
|
|
||||||
HRESULT ddraw_surface_Unlock(void *This, LPVOID lpRect)
|
HRESULT ddraw_surface_Unlock(void *This, LPVOID lpRect)
|
||||||
{
|
{
|
||||||
|
#if _DEBUG
|
||||||
printf("DirectDrawSurface::Unlock(This=%p, lpRect=%p)\n", This, lpRect);
|
printf("DirectDrawSurface::Unlock(This=%p, lpRect=%p)\n", This, lpRect);
|
||||||
|
#endif
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue