Francois Gouget : ddraw/tests: Fix compilation on systems that don' t support nameless unions.
Alexandre Julliard
julliard at winehq.org
Mon Dec 10 08:54:20 CST 2007
Module: wine
Branch: master
Commit: 05170942dee7f89f17c40d9f86c1990237833b4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=05170942dee7f89f17c40d9f86c1990237833b4f
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Dec 10 01:25:04 2007 +0100
ddraw/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/ddraw/tests/visual.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c
index 273970f..c9a3147 100644
--- a/dlls/ddraw/tests/visual.c
+++ b/dlls/ddraw/tests/visual.c
@@ -633,11 +633,11 @@ static void alpha_test(IDirect3DDevice7 *device)
ddsd.dwHeight = 128;
ddsd.ddsCaps.dwCaps = DDSCAPS_TEXTURE | DDSCAPS_3DDEVICE;
U4(ddsd).ddpfPixelFormat.dwFlags = DDPF_RGB | DDPF_ALPHAPIXELS;
- U4(ddsd).ddpfPixelFormat.dwRGBBitCount = 32;
- U4(ddsd).ddpfPixelFormat.dwRGBAlphaBitMask = 0xff000000;
- U4(ddsd).ddpfPixelFormat.dwRBitMask = 0x00ff0000;
- U4(ddsd).ddpfPixelFormat.dwGBitMask = 0x0000ff00;
- U4(ddsd).ddpfPixelFormat.dwBBitMask = 0x000000ff;
+ U1(U4(ddsd).ddpfPixelFormat).dwRGBBitCount = 32;
+ U2(U4(ddsd).ddpfPixelFormat).dwRBitMask = 0x00ff0000;
+ U3(U4(ddsd).ddpfPixelFormat).dwGBitMask = 0x0000ff00;
+ U4(U4(ddsd).ddpfPixelFormat).dwBBitMask = 0x000000ff;
+ U5(U4(ddsd).ddpfPixelFormat).dwRGBAlphaBitMask = 0xff000000;
hr = IDirectDraw7_CreateSurface(DirectDraw, &ddsd, &offscreen, NULL);
ok(hr == D3D_OK, "Creating the offscreen render target failed, hr = %08x\n", hr);
if(!offscreen) {
More information about the wine-cvs
mailing list