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
be964897
Commit
be964897
authored
Jan 13, 2009
by
David Adam
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix falling tests in native windows.
parent
753affe4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
math.c
dlls/d3dx9_36/math.c
+11
-1
math.c
dlls/d3dx9_36/tests/math.c
+4
-4
No files found.
dlls/d3dx9_36/math.c
View file @
be964897
...
...
@@ -37,6 +37,7 @@ D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation2D(
CONST
D3DXVECTOR2
*
protationcenter
,
FLOAT
rotation
,
CONST
D3DXVECTOR2
*
ptranslation
)
{
D3DXMATRIX
m1
,
m2
,
m3
,
m4
,
m5
;
D3DXQUATERNION
rot
;
D3DXVECTOR3
rot_center
,
trans
;
...
...
@@ -71,7 +72,16 @@ D3DXMATRIX* WINAPI D3DXMatrixAffineTransformation2D(
trans
.
z
=
0
.
0
f
;
}
D3DXMatrixAffineTransformation
(
pout
,
scaling
,
&
rot_center
,
&
rot
,
&
trans
);
D3DXMatrixScaling
(
&
m1
,
scaling
,
scaling
,
1
.
0
f
);
D3DXMatrixTranslation
(
&
m2
,
-
rot_center
.
x
,
-
rot_center
.
y
,
-
rot_center
.
z
);
D3DXMatrixTranslation
(
&
m4
,
rot_center
.
x
,
rot_center
.
y
,
rot_center
.
z
);
D3DXMatrixRotationQuaternion
(
&
m3
,
&
rot
);
D3DXMatrixTranslation
(
&
m5
,
trans
.
x
,
trans
.
y
,
trans
.
z
);
D3DXMatrixMultiply
(
&
m1
,
&
m1
,
&
m2
);
D3DXMatrixMultiply
(
&
m1
,
&
m1
,
&
m3
);
D3DXMatrixMultiply
(
&
m1
,
&
m1
,
&
m4
);
D3DXMatrixMultiply
(
pout
,
&
m1
,
&
m5
);
return
pout
;
}
...
...
dlls/d3dx9_36/tests/math.c
View file @
be964897
...
...
@@ -147,7 +147,7 @@ static void test_Matrix_AffineTransformation2D(void)
U
(
exp_mat
).
m
[
3
][
1
]
=
6
.
401924
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
]
=
20
.
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
;
...
...
@@ -177,7 +177,7 @@ static void test_Matrix_AffineTransformation2D(void)
U
(
exp_mat
).
m
[
3
][
1
]
=
-
0
.
598076
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
]
=
20
.
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
;
...
...
@@ -207,7 +207,7 @@ static void test_Matrix_AffineTransformation2D(void)
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
]
=
20
.
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
;
...
...
@@ -234,7 +234,7 @@ static void test_Matrix_AffineTransformation2D(void)
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
]
=
-
20
.
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
;
...
...
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