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
ebfdcc9c
Commit
ebfdcc9c
authored
Jan 01, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36/tests: Use D3DX_PI instead of M_PI.
parent
f6c90ec5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mesh.c
dlls/d3dx9_36/tests/mesh.c
+5
-5
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
ebfdcc9c
...
...
@@ -2564,12 +2564,12 @@ static BOOL compute_sphere(struct mesh *mesh, FLOAT radius, UINT slices, UINT st
int
slice
,
stack
;
/* theta = angle on xy plane wrt x axis */
theta_step
=
M
_PI
/
stacks
;
theta_step
=
D3DX
_PI
/
stacks
;
theta_start
=
theta_step
;
/* phi = angle on xz plane wrt z axis */
phi_step
=
-
2
*
M
_PI
/
slices
;
phi_start
=
M
_PI
/
2
;
phi_step
=
-
2
*
D3DX
_PI
/
slices
;
phi_start
=
D3DX
_PI
/
2
;
if
(
!
compute_sincos_table
(
&
theta
,
theta_start
,
theta_step
,
stacks
))
{
...
...
@@ -2800,8 +2800,8 @@ static BOOL compute_cylinder(struct mesh *mesh, FLOAT radius1, FLOAT radius2, FL
int
slice
,
stack
;
/* theta = angle on xy plane wrt x axis */
theta_step
=
-
2
*
M
_PI
/
slices
;
theta_start
=
M
_PI
/
2
;
theta_step
=
-
2
*
D3DX
_PI
/
slices
;
theta_start
=
D3DX
_PI
/
2
;
if
(
!
compute_sincos_table
(
&
theta
,
theta_start
,
theta_step
,
slices
))
{
...
...
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