Henri Verbeet : ddraw: Don't set the pixelformat' s dwSize field in CreateSurface().

Alexandre Julliard julliard at winehq.org
Tue Nov 26 15:51:44 CST 2013


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Nov 26 10:41:47 2013 +0100

ddraw: Don't set the pixelformat's dwSize field in CreateSurface().

This should be unnecessary.

---

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

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 99f0c3b..d81851c 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2924,7 +2924,6 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
 
     /* Modify some flags */
     copy_to_surfacedesc2(&desc2, DDSD);
-    desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
 
     /* The first surface is a front buffer, the back buffer is created afterwards */
     if (desc2.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)




More information about the wine-cvs mailing list