ddraw: Fix compilation with gcc 2.95
Francois Gouget
fgouget at codeweavers.com
Fri Jun 23 11:25:41 CDT 2006
Changelog:
* dlls/ddraw/tests/refcount.c
Francois Gouget <fgouget at codeweavers.com>
Fix compilation with gcc 2.95
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/ddraw/tests/refcount.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/tests/refcount.c,v
retrieving revision 1.1
diff -u -p -r1.1 refcount.c
--- dlls/ddraw/tests/refcount.c 19 Jun 2006 08:37:00 -0000 1.1
+++ dlls/ddraw/tests/refcount.c 23 Jun 2006 15:55:56 -0000
@@ -81,9 +81,9 @@ static void test_ddraw(void)
ddsd.dwWidth = 64;
ddsd.dwHeight = 64;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
- ddsd.ddpfPixelFormat.dwSize = sizeof(ddsd.ddpfPixelFormat);
- ddsd.ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
- ddsd.ddpfPixelFormat.dwRGBBitCount = 8;
+ U4(ddsd).ddpfPixelFormat.dwSize = sizeof(U4(ddsd).ddpfPixelFormat);
+ U4(ddsd).ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
+ U1(U4(ddsd).ddpfPixelFormat).dwRGBBitCount = 8;
hr = IDirectDraw7_CreateSurface(DDraw, &ddsd, &surface, NULL);
ok(hr == DD_OK, "CreateSurface failed with %08lx\n", hr);
More information about the wine-patches
mailing list