d3dx9_36/tests: Use D3DX_PI instead of M_PI.

This commit is contained in:
Stefan Dösinger 2014-01-01 19:01:43 +01:00 committed by Alexandre Julliard
parent f6c90ec59f
commit ebfdcc9c9a
1 changed files with 5 additions and 5 deletions

View File

@ -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))
{