Francois Gouget : ddraw/tests: There is no unnamed union in D3DLIGHT7.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 26 12:19:33 CST 2007


Module: wine
Branch: master
Commit: dbbef46e5af72d0a3b4e59091ee2a8bbc729046a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dbbef46e5af72d0a3b4e59091ee2a8bbc729046a

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Feb 26 16:46:19 2007 +0100

ddraw/tests: There is no unnamed union in D3DLIGHT7.

---

 dlls/ddraw/tests/d3d.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/ddraw/tests/d3d.c b/dlls/ddraw/tests/d3d.c
index 1125875..7237ff3 100644
--- a/dlls/ddraw/tests/d3d.c
+++ b/dlls/ddraw/tests/d3d.c
@@ -248,33 +248,33 @@ static void LightTest(void)
     U3(light.dcvDiffuse).b = 1.f;
     U3(light.dvDirection).z = 1.f;
 
-    U3(light.dvAttenuation0) = -1.0 / 0.0; /* -INFINITY */
+    light.dvAttenuation0 = -1.0 / 0.0; /* -INFINITY */
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==DDERR_INVALIDPARAMS, "SetLight returned: %x\n", rc);
 
-    U3(light.dvAttenuation0) = -1.0;
+    light.dvAttenuation0 = -1.0;
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==DDERR_INVALIDPARAMS, "SetLight returned: %x\n", rc);
 
-    U3(light.dvAttenuation0) = 0.0;
+    light.dvAttenuation0 = 0.0;
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==D3D_OK, "SetLight returned: %x\n", rc);
 
-    U3(light.dvAttenuation0) = 1.0;
+    light.dvAttenuation0 = 1.0;
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==D3D_OK, "SetLight returned: %x\n", rc);
 
-    U3(light.dvAttenuation0) = 1.0 / 0.0; /* +INFINITY */
+    light.dvAttenuation0 = 1.0 / 0.0; /* +INFINITY */
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==D3D_OK, "SetLight returned: %x\n", rc);
 
-    U3(light.dvAttenuation0) = 0.0 / 0.0; /* NaN */
+    light.dvAttenuation0 = 0.0 / 0.0; /* NaN */
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==D3D_OK, "SetLight returned: %x\n", rc);
 
     /* Directional light ignores attenuation */
     light.dltType = D3DLIGHT_DIRECTIONAL;
-    U3(light.dvAttenuation0) = -1.0;
+    light.dvAttenuation0 = -1.0;
     rc = IDirect3DDevice7_SetLight(lpD3DDevice, 103, &light);
     ok(rc==D3D_OK, "SetLight returned: %x\n", rc);
 }




More information about the wine-cvs mailing list