mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-23 03:55:44 -04: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) {
|
||||
return DDERR_INVALIDPARAMS;
|
||||
}
|
||||
if (m_surface->format != SDL_PIXELFORMAT_INDEX8) {
|
||||
return DDERR_GENERIC; // Not currently supported
|
||||
if (lpDDColorKey->dwColorSpaceLowValue != lpDDColorKey->dwColorSpaceHighValue) {
|
||||
return DDERR_GENERIC; // Not supported
|
||||
}
|
||||
|
||||
if (SDL_SetSurfaceColorKey(m_surface, true, lpDDColorKey->dwColorSpaceLowValue) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user