Reposition variable declarations to avoid C99.
This commit is contained in:
parent
94a571ea76
commit
9cf8410b0f
@ -245,9 +245,10 @@ gaussian (float x, float y)
|
|||||||
/* Center offset */
|
/* Center offset */
|
||||||
float b = 0.0;
|
float b = 0.0;
|
||||||
|
|
||||||
|
float dist;
|
||||||
x = x - RIPPLE_CENTER_X;
|
x = x - RIPPLE_CENTER_X;
|
||||||
y = y - RIPPLE_CENTER_Y;
|
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));
|
return a * exp ((- ((dist - b) * (dist - b))) / (2.0 * c * c));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user