aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpeg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jpeg.cpp')
-rw-r--r--graphics/jpeg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/jpeg.cpp b/graphics/jpeg.cpp
index ce0568816c..ce31eb0175 100644
--- a/graphics/jpeg.cpp
+++ b/graphics/jpeg.cpp
@@ -408,8 +408,8 @@ bool JPEG::readMCU(uint16 xMCU, uint16 yMCU) {
}
float JPEG::idct(int x, int y, int weight, int fx, int fy) {
- float vx = cos((2 * x + 1) * fx * M_PI / 16);
- float vy = cos((2 * y + 1) * fy * M_PI / 16);
+ float vx = cos((2 * x + 1) * fx * PI / 16);
+ float vy = cos((2 * y + 1) * fy * PI / 16);
float ret = (float)weight * vx * vy;
if (fx == 0)