mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Update
This commit is contained in:
parent
d62ada458c
commit
9f6a97db76
@ -306,8 +306,12 @@ bool d3d_get_adapter_display_mode(LPDIRECT3D d3d,
|
||||
if (!display_mode || !d3d)
|
||||
return false;
|
||||
#if defined(HAVE_D3D9) && !defined(__cplusplus)
|
||||
#ifdef _XBOX
|
||||
return true;
|
||||
#else
|
||||
if (FAILED(IDirect3D9_GetAdapterDisplayMode(d3d, idx, display_mode)))
|
||||
return false;
|
||||
#endif
|
||||
#elif defined(HAVE_D3D8) && !defined(__cplusplus)
|
||||
if (FAILED(IDirect3D8_GetAdapterDisplayMode(d3d, idx, display_mode)))
|
||||
return false;
|
||||
|
@ -504,7 +504,7 @@ static D3DFORMAT d3d_get_color_format_backbuffer(bool rgb32, bool windowed)
|
||||
{
|
||||
D3DFORMAT fmt = D3DFMT_UNKNOWN;
|
||||
#ifdef _XBOX
|
||||
if (info->rgb32)
|
||||
if (rgb32)
|
||||
fmt = D3DFMT_X8R8G8B8;
|
||||
else
|
||||
fmt = D3DFMT_LIN_R5G6B5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user