ddraw: Set the bitdepth on YUV formats.

This commit is contained in:
Stefan Dösinger 2008-08-01 13:37:56 -05:00 committed by Alexandre Julliard
parent 5d75939b09
commit a950d3a10e
1 changed files with 5 additions and 0 deletions

View File

@ -249,6 +249,11 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
case WINED3DFMT_UYVY:
case WINED3DFMT_YUY2:
DDPixelFormat->u1.dwYUVBitCount = 16;
DDPixelFormat->dwFlags = DDPF_FOURCC;
DDPixelFormat->dwFourCC = WineD3DFormat;
break;
case WINED3DFMT_YV12:
case WINED3DFMT_DXT1:
case WINED3DFMT_DXT2: