Stefan Dösinger : ddraw: Set the bitdepth on YUV formats.

Alexandre Julliard julliard at winehq.org
Wed Aug 20 08:13:56 CDT 2008


Module: wine
Branch: master
Commit: a950d3a10e8ab3ebef38fc801fe9af39d177fb70
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a950d3a10e8ab3ebef38fc801fe9af39d177fb70

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Aug  1 13:37:56 2008 -0500

ddraw: Set the bitdepth on YUV formats.

---

 dlls/ddraw/utils.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c
index 2c08328..5d96b36 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:




More information about the wine-cvs mailing list