ddraw/tests: There is no unnamed union in D3DLIGHT7.
Francois Gouget
fgouget at free.fr
Mon Feb 26 09:46:19 CST 2007
---
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);
}
--
1.4.4.4
More information about the wine-patches
mailing list