From a950d3a10e8ab3ebef38fc801fe9af39d177fb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 1 Aug 2008 13:37:56 -0500 Subject: [PATCH] ddraw: Set the bitdepth on YUV formats. --- dlls/ddraw/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c index 2c08328595f..5d96b367d1b 100644 --- a/dlls/ddraw/utils.c +++ b/dlls/ddraw/utils.c @@ -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: