Remove DirectDraw's format setting.

This commit is contained in:
Brandon Wright 2019-03-07 17:42:10 -06:00
parent 76b6342ca1
commit 0eaa701954
1 changed files with 0 additions and 43 deletions

View File

@ -626,49 +626,6 @@ void CDirectDraw::SetSnes9xColorFormat()
GUI.GreenShift = ffs (DDPixelFormat.dwGBitMask); GUI.GreenShift = ffs (DDPixelFormat.dwGBitMask);
GUI.BlueShift = ffs (DDPixelFormat.dwBBitMask); GUI.BlueShift = ffs (DDPixelFormat.dwBBitMask);
if((DDPixelFormat.dwFlags&DDPF_RGB) != 0 &&
GUI.ScreenDepth == 16 &&
DDPixelFormat.dwRBitMask == 0xF800 &&
DDPixelFormat.dwGBitMask == 0x07E0 &&
DDPixelFormat.dwBBitMask == 0x001F)
{
S9xSetRenderPixelFormat (RGB565);
}
else
if( (DDPixelFormat.dwFlags&DDPF_RGB) != 0 &&
GUI.ScreenDepth == 16 &&
DDPixelFormat.dwRBitMask == 0x7C00 &&
DDPixelFormat.dwGBitMask == 0x03E0 &&
DDPixelFormat.dwBBitMask == 0x001F)
{
S9xSetRenderPixelFormat (RGB555);
}
else
if((DDPixelFormat.dwFlags&DDPF_RGB) != 0 &&
GUI.ScreenDepth == 16 &&
DDPixelFormat.dwRBitMask == 0x001F &&
DDPixelFormat.dwGBitMask == 0x07E0 &&
DDPixelFormat.dwBBitMask == 0xF800)
{
S9xSetRenderPixelFormat (BGR565);
}
else
if( (DDPixelFormat.dwFlags&DDPF_RGB) != 0 &&
GUI.ScreenDepth == 16 &&
DDPixelFormat.dwRBitMask == 0x001F &&
DDPixelFormat.dwGBitMask == 0x03E0 &&
DDPixelFormat.dwBBitMask == 0x7C00)
{
S9xSetRenderPixelFormat (BGR555);
}
else
if (DDPixelFormat.dwRGBBitCount == 8 ||
DDPixelFormat.dwRGBBitCount == 24 ||
DDPixelFormat.dwRGBBitCount == 32)
{
S9xSetRenderPixelFormat (RGB565);
}
if ((GUI.ScreenDepth == 24 || GUI.ScreenDepth == 32)) if ((GUI.ScreenDepth == 24 || GUI.ScreenDepth == 32))
GUI.NeedDepthConvert = TRUE; GUI.NeedDepthConvert = TRUE;