ddraw: Complete recognition of pixelformat 19: X8L8V8U8.
This commit is contained in:
parent
8b6ae91042
commit
3eb62ed62c
|
@ -325,6 +325,16 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
|
|||
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
|
||||
break;
|
||||
|
||||
case WINED3DFMT_X8L8V8U8:
|
||||
DDPixelFormat->dwFlags = DDPF_BUMPDUDV;
|
||||
DDPixelFormat->dwFourCC = 0;
|
||||
DDPixelFormat->u1.dwBumpBitCount = 32;
|
||||
DDPixelFormat->u2.dwBumpDuBitMask = 0x000000ff;
|
||||
DDPixelFormat->u3.dwBumpDvBitMask = 0x0000ff00;
|
||||
DDPixelFormat->u4.dwBumpLuminanceBitMask = 0x00ff0000;
|
||||
DDPixelFormat->u5.dwLuminanceAlphaBitMask = 0x00000000;
|
||||
break;
|
||||
|
||||
default:
|
||||
ERR("Can't translate this Pixelformat %d\n", WineD3DFormat);
|
||||
}
|
||||
|
@ -620,6 +630,13 @@ PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat)
|
|||
{
|
||||
return WINED3DFMT_L6V5U5;
|
||||
}
|
||||
else if ( (DDPixelFormat->u1.dwBumpBitCount == 32 ) &&
|
||||
(DDPixelFormat->u2.dwBumpDuBitMask == 0x000000ff) &&
|
||||
(DDPixelFormat->u3.dwBumpDvBitMask == 0x0000ff00) &&
|
||||
(DDPixelFormat->u4.dwBumpLuminanceBitMask == 0x00ff0000) )
|
||||
{
|
||||
return WINED3DFMT_X8L8V8U8;
|
||||
}
|
||||
}
|
||||
|
||||
ERR("Unknown Pixelformat!\n");
|
||||
|
|
Loading…
Reference in New Issue