Francois Gouget : ddraw/tests: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Tue Nov 2 11:10:55 CDT 2010
Module: wine
Branch: master
Commit: aa93d7b80d342f1773d00811bdb3166a1cfe4be7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa93d7b80d342f1773d00811bdb3166a1cfe4be7
Author: Francois Gouget <fgouget at free.fr>
Date: Tue Nov 2 11:02:17 2010 +0100
ddraw/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/ddraw/tests/dsurface.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index 14fb87c..ee221ce 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -2900,10 +2900,10 @@ static void SurfaceCapsTest(void)
if (create.ddsCaps.dwCaps & DDSCAPS_ZBUFFER)
{
create.dwFlags |= DDSD_PIXELFORMAT;
- U4(create).ddpfPixelFormat.dwSize = sizeof(U4(create).ddpfPixelFormat);
- U4(create).ddpfPixelFormat.dwFlags = DDPF_ZBUFFER;
- U1(U4(create).ddpfPixelFormat).dwZBufferBitDepth = 16;
- U3(U4(create).ddpfPixelFormat).dwZBitMask = 0x0000FFFF;
+ create.ddpfPixelFormat.dwSize = sizeof(create.ddpfPixelFormat);
+ create.ddpfPixelFormat.dwFlags = DDPF_ZBUFFER;
+ U1(create.ddpfPixelFormat).dwZBufferBitDepth = 16;
+ U3(create.ddpfPixelFormat).dwZBitMask = 0x0000FFFF;
}
hr = IDirectDraw_CreateSurface(lpDD, &create, &surface1, NULL);
More information about the wine-cvs
mailing list