Module: wine Branch: refs/heads/master Commit: 5629f74d0dd392d87389a196f491bc410359c8b9 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5629f74d0dd392d87389a196...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Jun 23 18:25:41 2006 +0200
ddraw: Fix compilation with gcc 2.95.
---
dlls/ddraw/tests/refcount.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ddraw/tests/refcount.c b/dlls/ddraw/tests/refcount.c index 466868e..bcdc535 100644 --- a/dlls/ddraw/tests/refcount.c +++ b/dlls/ddraw/tests/refcount.c @@ -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);