Francois Gouget : ddraw: Fix compilation with gcc 2.95.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 26 07:12:17 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5629f74d0dd392d87389a196f491bc410359c8b9
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5629f74d0dd392d87389a196f491bc410359c8b9

Author: Francois Gouget <fgouget at 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);




More information about the wine-cvs mailing list