=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: d3dx9_36/tests: Use D3DX_PI instead of M_PI.
Alexandre Julliard
julliard at winehq.org
Wed Jan 1 14:24:21 CST 2014
Module: wine
Branch: master
Commit: ebfdcc9c9a1dd0af98c9692510dce8ac60269e4c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ebfdcc9c9a1dd0af98c9692510dce8ac60269e4c
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Jan 1 19:01:43 2014 +0100
d3dx9_36/tests: Use D3DX_PI instead of M_PI.
---
dlls/d3dx9_36/tests/mesh.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/d3dx9_36/tests/mesh.c b/dlls/d3dx9_36/tests/mesh.c
index 4878256..c700e43 100644
--- a/dlls/d3dx9_36/tests/mesh.c
+++ b/dlls/d3dx9_36/tests/mesh.c
@@ -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))
{
More information about the wine-cvs
mailing list