aboutsummaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-08-13 22:36:31 +0000
committerBrian Paul <[email protected]>2001-08-13 22:36:31 +0000
commit9a9077501043f33c24567dd574e53f17d3133fb8 (patch)
tree4b22d5466e9dac4e2d39994232c115c27e0dadec /progs
parentb1a2393bb7dfa4a930d5302a4dfd6afd9034c413 (diff)
replace PI with pi
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/pixeltex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/pixeltex.c b/progs/demos/pixeltex.c
index 96e46ef9294..1b044445a38 100644
--- a/progs/demos/pixeltex.c
+++ b/progs/demos/pixeltex.c
@@ -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);