ddraw: Handle WINED3DFMT_R16G16_SNORM.
This commit is contained in:
parent
7cfaf611d0
commit
3ea9024f55
|
@ -311,6 +311,16 @@ void PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat, enum wined3d_format_i
|
||||||
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
|
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WINED3DFMT_R16G16_SNORM:
|
||||||
|
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
|
||||||
|
DDPixelFormat->dwFourCC = 0;
|
||||||
|
DDPixelFormat->u1.dwBumpBitCount = 32;
|
||||||
|
DDPixelFormat->u2.dwBumpDuBitMask = 0x0000ffff;
|
||||||
|
DDPixelFormat->u3.dwBumpDvBitMask = 0xffff0000;
|
||||||
|
DDPixelFormat->u4.dwBumpLuminanceBitMask = 0x00000000;
|
||||||
|
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
|
||||||
|
break;
|
||||||
|
|
||||||
case WINED3DFMT_R5G5_SNORM_L6_UNORM:
|
case WINED3DFMT_R5G5_SNORM_L6_UNORM:
|
||||||
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
|
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
|
||||||
DDPixelFormat->dwFourCC = 0;
|
DDPixelFormat->dwFourCC = 0;
|
||||||
|
@ -579,6 +589,13 @@ enum wined3d_format_id PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat
|
||||||
{
|
{
|
||||||
return WINED3DFMT_R8G8_SNORM;
|
return WINED3DFMT_R8G8_SNORM;
|
||||||
}
|
}
|
||||||
|
else if ( (DDPixelFormat->u1.dwBumpBitCount == 32 ) &&
|
||||||
|
(DDPixelFormat->u2.dwBumpDuBitMask == 0x0000ffff) &&
|
||||||
|
(DDPixelFormat->u3.dwBumpDvBitMask == 0xffff0000) &&
|
||||||
|
(DDPixelFormat->u4.dwBumpLuminanceBitMask == 0x00000000) )
|
||||||
|
{
|
||||||
|
return WINED3DFMT_R16G16_SNORM;
|
||||||
|
}
|
||||||
else if ( (DDPixelFormat->u1.dwBumpBitCount == 16 ) &&
|
else if ( (DDPixelFormat->u1.dwBumpBitCount == 16 ) &&
|
||||||
(DDPixelFormat->u2.dwBumpDuBitMask == 0x0000001f) &&
|
(DDPixelFormat->u2.dwBumpDuBitMask == 0x0000001f) &&
|
||||||
(DDPixelFormat->u3.dwBumpDvBitMask == 0x000003e0) &&
|
(DDPixelFormat->u3.dwBumpDvBitMask == 0x000003e0) &&
|
||||||
|
|
Loading…
Reference in New Issue