diff options
-rw-r--r-- | graphics/jpeg.cpp | 4 | ||||
-rw-r--r-- | graphics/jpeg.h | 2 |
2 files changed, 2 insertions, 4 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) diff --git a/graphics/jpeg.h b/graphics/jpeg.h index d9097055e1..f4743a5e83 100644 --- a/graphics/jpeg.h +++ b/graphics/jpeg.h @@ -26,8 +26,6 @@ #ifndef GRAPHICS_JPEG_H #define GRAPHICS_JPEG_H -#define M_PI 3.141592f - #include "common/stream.h" #include "graphics/surface.h" |