aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobia Tesan2013-06-28 16:19:34 +0200
committerTobia Tesan2013-08-01 00:02:49 +0200
commitd2a249384eed076195b86f24ae1a041a93b3cd89 (patch)
tree0745e4c6590565a808c12071fe27a07a6ba59e08
parente47deb0e0e02f8ab288c21a33f5ec6187ab15e71 (diff)
downloadscummvm-rg350-d2a249384eed076195b86f24ae1a041a93b3cd89.tar.gz
scummvm-rg350-d2a249384eed076195b86f24ae1a041a93b3cd89.tar.bz2
scummvm-rg350-d2a249384eed076195b86f24ae1a041a93b3cd89.zip
WINTERMUTE: Partial fix for mirrored sprites
Still weird with rotated + mirrored + scaled sprites. Offset.
-rw-r--r--engines/wintermute/graphics/transform_tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/graphics/transform_tools.cpp b/engines/wintermute/graphics/transform_tools.cpp
index 2390b86391..f0a092a31b 100644
--- a/engines/wintermute/graphics/transform_tools.cpp
+++ b/engines/wintermute/graphics/transform_tools.cpp
@@ -32,8 +32,8 @@ namespace Wintermute {
*/
float rotateRad = rotate * M_PI / 180;
FloatPoint newPoint;
- newPoint.x = (point.x * cos(rotateRad) - point.y * sin(rotateRad))*zoom.x/100;
- newPoint.y = (point.x * sin(rotateRad) + point.y * cos(rotateRad))*zoom.y/100;
+ newPoint.x = (point.x * cos(rotateRad) - point.y * sin(rotateRad))*zoom.x/100.0;
+ newPoint.y = (point.x * sin(rotateRad) + point.y * cos(rotateRad))*zoom.y/100.0;
if (mirrorX) newPoint.x *= -1;
if (mirrorY) newPoint.y *= -1;
/*