diff options
author | Tobia Tesan | 2013-07-15 22:59:57 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:21:35 +0200 |
commit | 0d407fd2066fb94d19e7fd7e4bf703dd68d34ec9 (patch) | |
tree | 3183dbb7a34919dff59d48e4917aef2860a39532 /engines/wintermute/graphics/transform_tools.cpp | |
parent | d2d72c0110e4e2c265fcc1413958540f182d4353 (diff) | |
download | scummvm-rg350-0d407fd2066fb94d19e7fd7e4bf703dd68d34ec9.tar.gz scummvm-rg350-0d407fd2066fb94d19e7fd7e4bf703dd68d34ec9.tar.bz2 scummvm-rg350-0d407fd2066fb94d19e7fd7e4bf703dd68d34ec9.zip |
WINTERMUTE: Express 180.0f as float in TransformTools
Diffstat (limited to 'engines/wintermute/graphics/transform_tools.cpp')
-rw-r--r-- | engines/wintermute/graphics/transform_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/graphics/transform_tools.cpp b/engines/wintermute/graphics/transform_tools.cpp index 1ba48433ef..52e6a51296 100644 --- a/engines/wintermute/graphics/transform_tools.cpp +++ b/engines/wintermute/graphics/transform_tools.cpp @@ -27,7 +27,7 @@ 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; + float rotateRad = rotate * M_PI / 180.0f; FloatPoint newPoint; 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; |