#36 return DDERR_NOPALETTEATTACHED on GetPalette
This commit is contained in:
parent
a31d58c4c0
commit
417f6a6676
1 changed files with 9 additions and 1 deletions
|
@ -824,7 +824,15 @@ HRESULT __stdcall ddraw_surface_GetPalette(IDirectDrawSurfaceImpl *This, LPDIREC
|
|||
{
|
||||
printf("DirectDrawSurface::GetPalette(This=%p, lplpDDPalette=%p)\n", This, lplpDDPalette);
|
||||
*lplpDDPalette = (LPDIRECTDRAWPALETTE)This->palette;
|
||||
return DD_OK;
|
||||
|
||||
if (This->palette)
|
||||
{
|
||||
return DD_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return DDERR_NOPALETTEATTACHED;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT __stdcall ddraw_surface_GetPixelFormat(IDirectDrawSurfaceImpl *This, LPDDPIXELFORMAT ddpfPixelFormat)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue