Module: wine Branch: master Commit: 4a1435aa799bd4585332c9275dbd881b529b664d URL: http://source.winehq.org/git/wine.git/?a=commit;h=4a1435aa799bd4585332c9275d...
Author: Francois Gouget fgouget@free.fr Date: Sun Mar 4 01:59:36 2007 +0100
ddraw/tests: Fix compilation on systems that don't support nameless unions.
---
dlls/ddraw/tests/visual.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c index 0972565..e2eef0c 100644 --- a/dlls/ddraw/tests/visual.c +++ b/dlls/ddraw/tests/visual.c @@ -313,16 +313,16 @@ static void clear_test(IDirect3DDevice7 *device) ok(hr == D3D_OK, "IDirect3DDevice7_Clear failed with %08x\n", hr);
/* Positive x, negative y */ - rect[0].x1 = 0; - rect[0].y1 = 480; - rect[0].x2 = 320; - rect[0].y2 = 240; + U1(rect[0]).x1 = 0; + U2(rect[0]).y1 = 480; + U3(rect[0]).x2 = 320; + U4(rect[0]).y2 = 240;
/* Positive x, positive y */ - rect[1].x1 = 0; - rect[1].y1 = 0; - rect[1].x2 = 320; - rect[1].y2 = 240; + U1(rect[1]).x1 = 0; + U2(rect[1]).y1 = 0; + U3(rect[1]).x2 = 320; + U4(rect[1]).y2 = 240; /* Clear 2 rectangles with one call. Shows that a positive value is returned, but the negative rectangle * is ignored, the positive is still cleared afterwards */ @@ -330,10 +330,10 @@ static void clear_test(IDirect3DDevice7 *device) ok(hr == D3D_OK, "IDirect3DDevice7_Clear failed with %08x\n", hr);
/* negative x, negative y */ - rect_negneg.x1 = 640; - rect_negneg.x1 = 240; - rect_negneg.x2 = 320; - rect_negneg.y2 = 0; + U1(rect_negneg).x1 = 640; + U2(rect_negneg).y1 = 240; + U3(rect_negneg).x2 = 320; + U4(rect_negneg).y2 = 0; hr = IDirect3DDevice7_Clear(device, 1, &rect_negneg, D3DCLEAR_TARGET, 0xff00ff00, 0.0, 0); ok(hr == D3D_OK, "IDirect3DDevice7_Clear failed with %08x\n", hr);