mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 14:11:16 +00:00
miniwin: 16bit color key support (#124)
This commit is contained in:
parent
a19827e10f
commit
7972918472
@ -239,8 +239,8 @@ HRESULT DirectDrawSurfaceImpl::SetColorKey(DDColorKeyFlags dwFlags, LPDDCOLORKEY
|
|||||||
if (!lpDDColorKey) {
|
if (!lpDDColorKey) {
|
||||||
return DDERR_INVALIDPARAMS;
|
return DDERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
if (m_surface->format != SDL_PIXELFORMAT_INDEX8) {
|
if (lpDDColorKey->dwColorSpaceLowValue != lpDDColorKey->dwColorSpaceHighValue) {
|
||||||
return DDERR_GENERIC; // Not currently supported
|
return DDERR_GENERIC; // Not supported
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_SetSurfaceColorKey(m_surface, true, lpDDColorKey->dwColorSpaceLowValue) != 0) {
|
if (SDL_SetSurfaceColorKey(m_surface, true, lpDDColorKey->dwColorSpaceLowValue) != 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user