Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3f1a7abf
Commit
3f1a7abf
authored
Jan 31, 2009
by
David Adam
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Fix failing tests in Windows.
parent
befb0a06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
12 deletions
+35
-12
math.c
dlls/d3dx9_36/math.c
+4
-4
math.c
dlls/d3dx9_36/tests/math.c
+31
-8
No files found.
dlls/d3dx9_36/math.c
View file @
3f1a7abf
...
...
@@ -164,13 +164,13 @@ D3DXMATRIX* WINAPI D3DXMatrixTransformation2D(
{
sca
.
x
=
pscaling
->
x
;
sca
.
y
=
pscaling
->
y
;
sca
.
z
=
0
.
0
f
;
sca
.
z
=
1
.
0
f
;
}
else
{
sca
.
x
=
0
.
0
f
;
sca
.
y
=
0
.
0
f
;
sca
.
z
=
0
.
0
f
;
sca
.
x
=
1
.
0
f
;
sca
.
y
=
1
.
0
f
;
sca
.
z
=
1
.
0
f
;
}
if
(
protationcenter
)
...
...
dlls/d3dx9_36/tests/math.c
View file @
3f1a7abf
...
...
@@ -612,7 +612,7 @@ static void test_Matrix_Transformation2D(void)
U
(
exp_mat
).
m
[
3
][
1
]
=
-
13
.
401899
f
;
U
(
exp_mat
).
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
2
]
=
1
.
0
f
;
U
(
exp_mat
).
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
3
]
=
0
.
0
f
;
...
...
@@ -635,17 +635,17 @@ static void test_Matrix_Transformation2D(void)
sca_rot
=
5
.
0
f
*
D3DX_PI
/
4
.
0
f
;
U
(
exp_mat
).
m
[
0
][
0
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
0
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
0
]
=
0
.
5
0
f
;
U
(
exp_mat
).
m
[
1
][
0
]
=
-
0
.
866025
f
;
U
(
exp_mat
).
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
0
]
=
2
.
830127
f
;
U
(
exp_mat
).
m
[
0
][
1
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
1
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
0
]
=
-
6
.
0
f
;
U
(
exp_mat
).
m
[
0
][
1
]
=
0
.
866025
f
;
U
(
exp_mat
).
m
[
1
][
1
]
=
0
.
5
0
f
;
U
(
exp_mat
).
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
1
]
=
12
.
294229
f
;
U
(
exp_mat
).
m
[
3
][
1
]
=
7
.
0
f
;
U
(
exp_mat
).
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
2
]
=
1
.
0
f
;
U
(
exp_mat
).
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
3
]
=
0
.
0
f
;
...
...
@@ -655,6 +655,29 @@ static void test_Matrix_Transformation2D(void)
D3DXMatrixTransformation2D
(
&
got_mat
,
&
sca_center
,
sca_rot
,
NULL
,
NULL
,
rot
,
&
trans
);
expect_mat
(
&
exp_mat
,
&
got_mat
);
/*_________*/
U
(
exp_mat
).
m
[
0
][
0
]
=
0
.
50
f
;
U
(
exp_mat
).
m
[
1
][
0
]
=
-
0
.
866025
f
;
U
(
exp_mat
).
m
[
2
][
0
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
0
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
1
]
=
0
.
866025
f
;
U
(
exp_mat
).
m
[
1
][
1
]
=
0
.
50
f
;
U
(
exp_mat
).
m
[
2
][
1
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
1
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
2
]
=
1
.
0
f
;
U
(
exp_mat
).
m
[
3
][
2
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
0
][
3
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
1
][
3
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
2
][
3
]
=
0
.
0
f
;
U
(
exp_mat
).
m
[
3
][
3
]
=
1
.
0
f
;
D3DXMatrixTransformation2D
(
&
got_mat
,
NULL
,
sca_rot
,
NULL
,
NULL
,
rot
,
NULL
);
expect_mat
(
&
exp_mat
,
&
got_mat
);
}
static
void
test_D3DXVec_Array
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment