mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
support GetColorKey
This commit is contained in:
parent
6f520b4843
commit
c434e74216
@ -696,7 +696,16 @@ HRESULT __stdcall ddraw_surface_GetClipper(IDirectDrawSurfaceImpl *This, LPDIREC
|
|||||||
|
|
||||||
HRESULT __stdcall ddraw_surface_GetColorKey(IDirectDrawSurfaceImpl *This, DWORD flags, LPDDCOLORKEY colorKey)
|
HRESULT __stdcall ddraw_surface_GetColorKey(IDirectDrawSurfaceImpl *This, DWORD flags, LPDDCOLORKEY colorKey)
|
||||||
{
|
{
|
||||||
printf("IDirectDrawSurface::GetColorKey(This=%p, ...) ???\n", This);
|
#if _DEBUG_X
|
||||||
|
printf("DirectDrawSurface::GetColorKey(This=%p, flags=0x%08X, colorKey=%p) ???\n", This, flags, colorKey);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (colorKey)
|
||||||
|
{
|
||||||
|
colorKey->dwColorSpaceHighValue = This->colorKey.dwColorSpaceHighValue;
|
||||||
|
colorKey->dwColorSpaceLowValue = This->colorKey.dwColorSpaceLowValue;
|
||||||
|
}
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -848,8 +857,11 @@ HRESULT __stdcall ddraw_surface_SetColorKey(IDirectDrawSurfaceImpl *This, DWORD
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
This->colorKey.dwColorSpaceHighValue = colorKey->dwColorSpaceHighValue;
|
if (colorKey)
|
||||||
This->colorKey.dwColorSpaceLowValue = colorKey->dwColorSpaceLowValue;
|
{
|
||||||
|
This->colorKey.dwColorSpaceHighValue = colorKey->dwColorSpaceHighValue;
|
||||||
|
This->colorKey.dwColorSpaceLowValue = colorKey->dwColorSpaceLowValue;
|
||||||
|
}
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user