replace PI with pi

This commit is contained in:
Brian Paul 2001-08-13 22:36:31 +00:00
parent b1a2393bb7
commit 9a90775010
1 changed files with 2 additions and 2 deletions

View File

@ -127,12 +127,12 @@ static void Idle(void)
static GLubyte warp(GLfloat s, int frame)
{
static const GLfloat PI = 3.14159265;
static const GLfloat pi = 3.14159265;
static int halfFrame = FRAMES / 2;
GLfloat y, weight, v;
if (frame >= halfFrame)
frame = halfFrame - (frame - halfFrame);
y = sin(s * PI);
y = sin(s * pi);
weight = (float) frame / (FRAMES-1);
v = y * (0.8 * weight + 0.2);
return (GLint) (v * 255.0F);