mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
Windows never reports 24 bit colours, and some games fail to work
unless in specific modes. Report 16bit colour for 24bit modes.
This commit is contained in:
parent
5052e072e3
commit
02f3df3988
@ -197,9 +197,8 @@ HRESULT WINAPI IDirect3D8Impl_EnumAdapterModes (LPDIRECT3D8 iface,
|
||||
|
||||
switch (bpp) {
|
||||
case 8: pMode->Format = D3DFMT_R3G3B2; break;
|
||||
/*case 16: pMode->Format = D3DFMT_A4R4G4B4; break;*/
|
||||
case 16: pMode->Format = D3DFMT_R5G6B5; break;
|
||||
case 24: pMode->Format = D3DFMT_R8G8B8; break;
|
||||
case 16: pMode->Format = D3DFMT_R5G6B5; break;
|
||||
case 24: pMode->Format = D3DFMT_R5G6B5; break; /* Make 24bit appear as 16 bit */
|
||||
case 32: pMode->Format = D3DFMT_A8R8G8B8; break;
|
||||
default: pMode->Format = D3DFMT_UNKNOWN;
|
||||
}
|
||||
@ -235,9 +234,8 @@ HRESULT WINAPI IDirect3D8Impl_GetAdapterDisplayMode (LPDIRECT3D8 iface,
|
||||
|
||||
switch (bpp) {
|
||||
case 8: pMode->Format = D3DFMT_R3G3B2; break;
|
||||
case 16: pMode->Format = D3DFMT_R5G6B5; break;
|
||||
/*case 16: pMode->Format = D3DFMT_A4R4G4B4; break;*/
|
||||
case 24: pMode->Format = D3DFMT_R8G8B8; break;
|
||||
case 16: pMode->Format = D3DFMT_R5G6B5; break;
|
||||
case 24: pMode->Format = D3DFMT_R5G6B5; break; /* Make 24bit appear as 16 bit */
|
||||
case 32: pMode->Format = D3DFMT_A8R8G8B8; break;
|
||||
default: pMode->Format = D3DFMT_UNKNOWN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user