[PATCH] DDraw: Set the bitdepth on YUV formats=0A=

Stefan Doesinger stefan at codeweavers.com
Fri Aug 1 13:37:56 CDT 2008


=0A=
---=0A=
 dlls/ddraw/utils.c |    5 +++++=0A=
 1 files changed, 5 insertions(+), 0 deletions(-)=0A=
=0A=
diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c=0A=
index 2c08328..5d96b36 100644=0A=
--- a/dlls/ddraw/utils.c=0A=
+++ b/dlls/ddraw/utils.c=0A=
@@ -249,6 +249,11 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT =
*DDPixelFormat,=0A=
 =0A=
         case WINED3DFMT_UYVY:=0A=
         case WINED3DFMT_YUY2:=0A=
+            DDPixelFormat->u1.dwYUVBitCount =3D 16;=0A=
+            DDPixelFormat->dwFlags =3D DDPF_FOURCC;=0A=
+            DDPixelFormat->dwFourCC =3D WineD3DFormat;=0A=
+            break;=0A=
+=0A=
         case WINED3DFMT_YV12:=0A=
         case WINED3DFMT_DXT1:=0A=
         case WINED3DFMT_DXT2:=0A=
-- =0A=
1.5.4.5=0A=
=0A=

------=_NextPart_000_0009_01C901F1.8B5D6670--




More information about the wine-patches mailing list