diff options
author | Tobia Tesan | 2013-07-15 22:39:55 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:21:25 +0200 |
commit | d2d72c0110e4e2c265fcc1413958540f182d4353 (patch) | |
tree | 0fc1f91e35c9b84498581ba3cd593ed2993f6d64 /engines/wintermute/graphics/transform_tools.cpp | |
parent | 63b8132ea3ec6fe6bcfcb43d1e0c9baf481eab1e (diff) | |
download | scummvm-rg350-d2d72c0110e4e2c265fcc1413958540f182d4353.tar.gz scummvm-rg350-d2d72c0110e4e2c265fcc1413958540f182d4353.tar.bz2 scummvm-rg350-d2d72c0110e4e2c265fcc1413958540f182d4353.zip |
WINTERMUTE: #define to const for TransformStruct defaults
Diffstat (limited to 'engines/wintermute/graphics/transform_tools.cpp')
-rw-r--r-- | engines/wintermute/graphics/transform_tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/graphics/transform_tools.cpp b/engines/wintermute/graphics/transform_tools.cpp index 01e8b486ce..1ba48433ef 100644 --- a/engines/wintermute/graphics/transform_tools.cpp +++ b/engines/wintermute/graphics/transform_tools.cpp @@ -29,8 +29,8 @@ namespace Wintermute { FloatPoint TransformTools::transformPoint(const FloatPoint &point, const float rotate, const Point32 &zoom, const bool mirrorX, const bool mirrorY) { float rotateRad = rotate * M_PI / 180; FloatPoint newPoint; - newPoint.x = (point.x * cos(rotateRad) - point.y * sin(rotateRad))*zoom.x/DEFAULT_ZOOM_X; - newPoint.y = (point.x * sin(rotateRad) + point.y * cos(rotateRad))*zoom.y/DEFAULT_ZOOM_Y; + newPoint.x = (point.x * cos(rotateRad) - point.y * sin(rotateRad))*zoom.x/kDefaultZoomX; + newPoint.y = (point.x * sin(rotateRad) + point.y * cos(rotateRad))*zoom.y/kDefaultZoomY; if (mirrorX) { newPoint.x *= -1; } |