d3d_get_color_format_backbuffer - cleanups

This commit is contained in:
twinaphex 2018-01-20 16:35:59 +01:00
parent 4ba100f660
commit cc1a828c87

View File

@ -498,11 +498,9 @@ static D3DFORMAT d3d_get_xrgb8888_format(void)
static D3DFORMAT d3d_get_color_format_backbuffer(bool rgb32, bool windowed)
{
D3DFORMAT fmt = D3DFMT_UNKNOWN;
D3DFORMAT fmt = D3DFMT_X8R8G8B8;
#ifdef _XBOX
if (rgb32)
fmt = D3DFMT_X8R8G8B8;
else
if (!rgb32)
fmt = D3DFMT_LIN_R5G6B5;
#else
if (windowed)
@ -511,8 +509,6 @@ static D3DFORMAT d3d_get_color_format_backbuffer(bool rgb32, bool windowed)
if (d3d_get_adapter_display_mode(g_pD3D, 0, &display_mode))
fmt = display_mode.Format;
}
else
fmt = D3DFMT_X8R8G8B8;
#endif
return fmt;
}