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
e9219533
Commit
e9219533
authored
Sep 27, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use float functions in D3DXQuaternionLn().
parent
2c05f004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
math.c
dlls/d3dx9_36/math.c
+9
-9
No files found.
dlls/d3dx9_36/math.c
View file @
e9219533
...
...
@@ -1305,23 +1305,23 @@ D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, CONST D3DXQUA
return
pout
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionLn
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
p
q
)
D3DXQUATERNION
*
WINAPI
D3DXQuaternionLn
(
D3DXQUATERNION
*
out
,
const
D3DXQUATERNION
*
q
)
{
FLOAT
t
;
TRACE
(
"
(%p, %p)
\n
"
,
pout
,
p
q
);
TRACE
(
"
out %p, q %p
\n
"
,
out
,
q
);
if
(
(
pq
->
w
>=
1
.
0
f
)
||
(
pq
->
w
==
-
1
.
0
f
)
)
if
(
(
q
->
w
>=
1
.
0
f
)
||
(
q
->
w
==
-
1
.
0
f
)
)
t
=
1
.
0
f
;
else
t
=
acos
(
pq
->
w
)
/
sqrt
(
1
.
0
f
-
pq
->
w
*
pq
->
w
);
t
=
acos
f
(
q
->
w
)
/
sqrtf
(
1
.
0
f
-
q
->
w
*
q
->
w
);
pout
->
x
=
t
*
p
q
->
x
;
pout
->
y
=
t
*
p
q
->
y
;
pout
->
z
=
t
*
p
q
->
z
;
p
out
->
w
=
0
.
0
f
;
out
->
x
=
t
*
q
->
x
;
out
->
y
=
t
*
q
->
y
;
out
->
z
=
t
*
q
->
z
;
out
->
w
=
0
.
0
f
;
return
p
out
;
return
out
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionMultiply
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
pq1
,
CONST
D3DXQUATERNION
*
pq2
)
...
...
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