#249 fix improper colorspace handling
This commit is contained in:
parent
ce84abfac0
commit
7e9be97099
1 changed files with 9 additions and 1 deletions
|
@ -1034,8 +1034,16 @@ HRESULT dds_SetColorKey(IDirectDrawSurfaceImpl* This, DWORD dwFlags, LPDDCOLORKE
|
|||
|
||||
if (lpColorKey)
|
||||
{
|
||||
This->color_key.dwColorSpaceHighValue = lpColorKey->dwColorSpaceHighValue;
|
||||
This->color_key.dwColorSpaceLowValue = lpColorKey->dwColorSpaceLowValue;
|
||||
|
||||
if (dwFlags & DDCKEY_COLORSPACE)
|
||||
{
|
||||
This->color_key.dwColorSpaceHighValue = lpColorKey->dwColorSpaceHighValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
This->color_key.dwColorSpaceHighValue = lpColorKey->dwColorSpaceLowValue;
|
||||
}
|
||||
}
|
||||
|
||||
return DD_OK;
|
||||
|
|
Loading…
Reference in a new issue