[PATCH] Uniformize the matrix in the tests

David Adam David.Adam at math.cnrs.fr
Mon Nov 5 12:27:01 CST 2007


---
 dlls/d3dx8/tests/math.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/d3dx8/tests/math.c b/dlls/d3dx8/tests/math.c
index f84426d..1b1048c 100644
--- a/dlls/d3dx8/tests/math.c
+++ b/dlls/d3dx8/tests/math.c
@@ -223,14 +223,18 @@ static void D3DXMatrixTest(void)
     expect_mat(expectedmat,gotmat);
=20
 /*____________D3DXMatrixOrthoLH_______________*/
-    D3DXMatrixIdentity(&expectedmat);
-    expectedmat.m[0][0] =3D 0.8f; expectedmat.m[1][1] =3D 0.270270f; expect=
edmat.m[2][2] =3D -0.151515f; expectedmat.m[3][2] =3D -0.484848f;
+    expectedmat.m[0][0] =3D 0.8f; expectedmat.m[0][1] =3D 0.0f; expectedmat=
.m[0][2] =3D 0.0f; expectedmat.m[0][3] =3D 0.0f;
+    expectedmat.m[1][0] =3D 0.0f; expectedmat.m[1][1] =3D 0.270270f; expect=
edmat.m[1][2] =3D 0.0f; expectedmat.m[1][3] =3D 0.0f;
+    expectedmat.m[2][0] =3D 0.0f; expectedmat.m[2][1] =3D 0.0f; expectedmat=
.m[2][2] =3D -0.151515f; expectedmat.m[2][3] =3D 0.0f;
+    expectedmat.m[3][0] =3D 0.0f; expectedmat.m[3][1] =3D 0.0f; expectedmat=
.m[3][2] =3D -0.484848f; expectedmat.m[3][3] =3D 1.0f;
     D3DXMatrixOrthoLH(&gotmat, 2.5f, 7.4f, -3.2f, -9.8f);
     expect_mat(expectedmat,gotmat);
=20
 /*____________D3DXMatrixOrthoRH_______________*/
-    D3DXMatrixIdentity(&expectedmat);
-    expectedmat.m[0][0] =3D 0.8f; expectedmat.m[1][1] =3D 0.270270f; expect=
edmat.m[2][2] =3D 0.151515f; expectedmat.m[3][2] =3D -0.484848f;
+    expectedmat.m[0][0] =3D 0.8f; expectedmat.m[0][1] =3D 0.0f; expectedmat=
.m[0][2] =3D 0.0f; expectedmat.m[0][3] =3D 0.0f;
+    expectedmat.m[1][0] =3D 0.0f; expectedmat.m[1][1] =3D 0.270270f; expect=
edmat.m[1][2] =3D 0.0f; expectedmat.m[1][3] =3D 0.0f;
+    expectedmat.m[2][0] =3D 0.0f; expectedmat.m[2][1] =3D 0.0f; expectedmat=
.m[2][2] =3D 0.151515f; expectedmat.m[2][3] =3D 0.0f;
+    expectedmat.m[3][0] =3D 0.0f; expectedmat.m[3][1] =3D 0.0f; expectedmat=
.m[3][2] =3D -0.484848f; expectedmat.m[3][3] =3D 1.0f;
     D3DXMatrixOrthoRH(&gotmat, 2.5f, 7.4f, -3.2f, -9.8f);
     expect_mat(expectedmat,gotmat);
=20
--=20
1.5.3.2


--=_7eu2i25427sw--



More information about the wine-patches mailing list