diff options
author | Tobia Tesan | 2013-07-10 11:44:38 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:06:36 +0200 |
commit | a0561f1aa52b31feff468dc53b6556a683b6a819 (patch) | |
tree | ef8f4fe2b71ca224570c1326223a759589be2d51 | |
parent | 9f97ad6a3e9e10fa7164a4e545c1705896f77925 (diff) | |
download | scummvm-rg350-a0561f1aa52b31feff468dc53b6556a683b6a819.tar.gz scummvm-rg350-a0561f1aa52b31feff468dc53b6556a683b6a819.tar.bz2 scummvm-rg350-a0561f1aa52b31feff468dc53b6556a683b6a819.zip |
WINTERMUTE: Fix calculation of inverse angles
-rw-r--r-- | engines/wintermute/graphics/transparent_surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/graphics/transparent_surface.cpp b/engines/wintermute/graphics/transparent_surface.cpp index 0ec0b84f25..a0d472389f 100644 --- a/engines/wintermute/graphics/transparent_surface.cpp +++ b/engines/wintermute/graphics/transparent_surface.cpp @@ -513,7 +513,7 @@ TransparentSurface *TransparentSurface::rotoscale(const TransformStruct &transfo target->create((uint16)dstW, (uint16)dstH, this->format); - uint32 invAngle = (360 - transform._angle) % 360; + uint32 invAngle = 360 - (transform._angle % 360); float invCos = cos(invAngle * M_PI / 180.0); float invSin = sin(invAngle * M_PI / 180.0); float targX; |