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
5accb12c
Commit
5accb12c
authored
Sep 26, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Avoid variable assignment in D3DXQuaternionNormalize().
parent
db8df8bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
math.c
dlls/d3dx9_36/math.c
+8
-11
No files found.
dlls/d3dx9_36/math.c
View file @
5accb12c
...
...
@@ -1338,23 +1338,20 @@ D3DXQUATERNION* WINAPI D3DXQuaternionMultiply(D3DXQUATERNION *pout, CONST D3DXQU
return
pout
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionNormalize
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
p
q
)
D3DXQUATERNION
*
WINAPI
D3DXQuaternionNormalize
(
D3DXQUATERNION
*
out
,
const
D3DXQUATERNION
*
q
)
{
D3DXQUATERNION
out
;
FLOAT
norm
;
TRACE
(
"(%p, %p)
\n
"
,
pout
,
pq
);
norm
=
D3DXQuaternionLength
(
pq
);
TRACE
(
"out %p, q %p
\n
"
,
out
,
q
);
out
.
x
=
pq
->
x
/
norm
;
out
.
y
=
pq
->
y
/
norm
;
out
.
z
=
pq
->
z
/
norm
;
out
.
w
=
pq
->
w
/
norm
;
norm
=
D3DXQuaternionLength
(
q
);
*
pout
=
out
;
out
->
x
=
q
->
x
/
norm
;
out
->
y
=
q
->
y
/
norm
;
out
->
z
=
q
->
z
/
norm
;
out
->
w
=
q
->
w
/
norm
;
return
p
out
;
return
out
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionRotationAxis
(
D3DXQUATERNION
*
out
,
const
D3DXVECTOR3
*
v
,
FLOAT
angle
)
...
...
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