Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ee664704
Commit
ee664704
authored
Jun 17, 2013
by
Rico Schüller
Committed by
Alexandre Julliard
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Apply rotationcenter only when a rotation is done.
parent
48947117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
23 deletions
+6
-23
math.c
dlls/d3dx9_36/math.c
+6
-23
No files found.
dlls/d3dx9_36/math.c
View file @
ee664704
...
...
@@ -102,13 +102,6 @@ D3DXMATRIX * WINAPI D3DXMatrixAffineTransformation(D3DXMATRIX *out, FLOAT scalin
D3DXMatrixIdentity
(
out
);
if
(
rotationcenter
)
{
out
->
u
.
m
[
3
][
0
]
=
-
rotationcenter
->
x
;
out
->
u
.
m
[
3
][
1
]
=
-
rotationcenter
->
y
;
out
->
u
.
m
[
3
][
2
]
=
-
rotationcenter
->
z
;
}
if
(
rotation
)
{
FLOAT
temp00
,
temp01
,
temp02
,
temp10
,
temp11
,
temp12
,
temp20
,
temp21
,
temp22
;
...
...
@@ -135,15 +128,12 @@ D3DXMATRIX * WINAPI D3DXMatrixAffineTransformation(D3DXMATRIX *out, FLOAT scalin
if
(
rotationcenter
)
{
FLOAT
x
,
y
,
z
;
x
=
out
->
u
.
m
[
3
][
0
];
y
=
out
->
u
.
m
[
3
][
1
];
z
=
out
->
u
.
m
[
3
][
2
];
out
->
u
.
m
[
3
][
0
]
=
x
*
temp00
+
y
*
temp10
+
z
*
temp20
;
out
->
u
.
m
[
3
][
1
]
=
x
*
temp01
+
y
*
temp11
+
z
*
temp21
;
out
->
u
.
m
[
3
][
2
]
=
x
*
temp02
+
y
*
temp12
+
z
*
temp22
;
out
->
u
.
m
[
3
][
0
]
=
rotationcenter
->
x
*
(
1
.
0
f
-
temp00
)
-
rotationcenter
->
y
*
temp10
-
rotationcenter
->
z
*
temp20
;
out
->
u
.
m
[
3
][
1
]
=
rotationcenter
->
y
*
(
1
.
0
f
-
temp11
)
-
rotationcenter
->
x
*
temp01
-
rotationcenter
->
z
*
temp21
;
out
->
u
.
m
[
3
][
2
]
=
rotationcenter
->
z
*
(
1
.
0
f
-
temp22
)
-
rotationcenter
->
x
*
temp02
-
rotationcenter
->
y
*
temp12
;
}
}
else
...
...
@@ -153,13 +143,6 @@ D3DXMATRIX * WINAPI D3DXMatrixAffineTransformation(D3DXMATRIX *out, FLOAT scalin
out
->
u
.
m
[
2
][
2
]
=
scaling
;
}
if
(
rotationcenter
)
{
out
->
u
.
m
[
3
][
0
]
+=
rotationcenter
->
x
;
out
->
u
.
m
[
3
][
1
]
+=
rotationcenter
->
y
;
out
->
u
.
m
[
3
][
2
]
+=
rotationcenter
->
z
;
}
if
(
translation
)
{
out
->
u
.
m
[
3
][
0
]
+=
translation
->
x
;
...
...
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