common: fix build error on windows (M_PI->Q_PI)

This commit is contained in:
Eric Wasylishen 2017-02-07 21:36:24 -07:00
parent 089819d672
commit f95e8445ef
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ static float Lanczos1D(float x, float a)
if (x < -a || x >= a)
return 0;
float lanczos = (a * sinf(M_PI * x) * sinf(M_PI * x / a)) / (M_PI * M_PI * x * x);
float lanczos = (a * sinf(Q_PI * x) * sinf(Q_PI * x / a)) / (Q_PI * Q_PI * x * x);
return lanczos;
}