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
e420409b
Commit
e420409b
authored
Sep 28, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use float function in D3DXPlaneNormalize().
parent
e13a589b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
math.c
dlls/d3dx9_36/math.c
+14
-15
No files found.
dlls/d3dx9_36/math.c
View file @
e420409b
...
@@ -1197,30 +1197,29 @@ D3DXVECTOR3* WINAPI D3DXPlaneIntersectLine(D3DXVECTOR3 *pout, CONST D3DXPLANE *p
...
@@ -1197,30 +1197,29 @@ D3DXVECTOR3* WINAPI D3DXPlaneIntersectLine(D3DXVECTOR3 *pout, CONST D3DXPLANE *p
return
pout
;
return
pout
;
}
}
D3DXPLANE
*
WINAPI
D3DXPlaneNormalize
(
D3DXPLANE
*
pout
,
CONST
D3DXPLANE
*
p
p
)
D3DXPLANE
*
WINAPI
D3DXPlaneNormalize
(
D3DXPLANE
*
out
,
const
D3DXPLANE
*
p
)
{
{
D3DXPLANE
out
;
FLOAT
norm
;
FLOAT
norm
;
TRACE
(
"
(%p, %p)
\n
"
,
pout
,
p
p
);
TRACE
(
"
out %p, p %p
\n
"
,
out
,
p
);
norm
=
sqrt
(
pp
->
a
*
pp
->
a
+
pp
->
b
*
pp
->
b
+
pp
->
c
*
p
p
->
c
);
norm
=
sqrt
f
(
p
->
a
*
p
->
a
+
p
->
b
*
p
->
b
+
p
->
c
*
p
->
c
);
if
(
norm
)
if
(
norm
)
{
{
out
.
a
=
p
p
->
a
/
norm
;
out
->
a
=
p
->
a
/
norm
;
out
.
b
=
p
p
->
b
/
norm
;
out
->
b
=
p
->
b
/
norm
;
out
.
c
=
p
p
->
c
/
norm
;
out
->
c
=
p
->
c
/
norm
;
out
.
d
=
p
p
->
d
/
norm
;
out
->
d
=
p
->
d
/
norm
;
}
}
else
else
{
{
out
.
a
=
0
.
0
f
;
out
->
a
=
0
.
0
f
;
out
.
b
=
0
.
0
f
;
out
->
b
=
0
.
0
f
;
out
.
c
=
0
.
0
f
;
out
->
c
=
0
.
0
f
;
out
.
d
=
0
.
0
f
;
out
->
d
=
0
.
0
f
;
}
}
*
pout
=
out
;
return
p
out
;
return
out
;
}
}
D3DXPLANE
*
WINAPI
D3DXPlaneTransform
(
D3DXPLANE
*
pout
,
CONST
D3DXPLANE
*
pplane
,
CONST
D3DXMATRIX
*
pm
)
D3DXPLANE
*
WINAPI
D3DXPlaneTransform
(
D3DXPLANE
*
pout
,
CONST
D3DXPLANE
*
pplane
,
CONST
D3DXMATRIX
*
pm
)
...
...
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