Reposition variable declarations to avoid C99.

This commit is contained in:
Haakon Sporsheim 2009-03-31 14:45:45 +02:00 committed by Neil Roberts
parent 94a571ea76
commit 9cf8410b0f

View File

@ -245,9 +245,10 @@ gaussian (float x, float y)
/* Center offset */
float b = 0.0;
float dist;
x = x - RIPPLE_CENTER_X;
y = y - RIPPLE_CENTER_Y;
float dist = sqrtf (x*x + y*y);
dist = sqrtf (x*x + y*y);
return a * exp ((- ((dist - b) * (dist - b))) / (2.0 * c * c));
}