aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_sub_frame.cpp
diff options
context:
space:
mode:
authorTobia Tesan2013-09-18 15:31:32 +0200
committerEinar Johan Trøan Sømåen2013-09-18 18:19:19 +0200
commit2c4d5ae6224dfa4450957eaaf3a1231e5dadc535 (patch)
tree477ddcdf974769e488552c650c0eed56ce442e12 /engines/wintermute/base/base_sub_frame.cpp
parent9578bab703b6c1e32a547179a347b7bea9c2e054 (diff)
downloadscummvm-rg350-2c4d5ae6224dfa4450957eaaf3a1231e5dadc535.tar.gz
scummvm-rg350-2c4d5ae6224dfa4450957eaaf3a1231e5dadc535.tar.bz2
scummvm-rg350-2c4d5ae6224dfa4450957eaaf3a1231e5dadc535.zip
WINTERMUTE: Cast rotate in base_sub_frame
Diffstat (limited to 'engines/wintermute/base/base_sub_frame.cpp')
-rw-r--r--engines/wintermute/base/base_sub_frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/base_sub_frame.cpp b/engines/wintermute/base/base_sub_frame.cpp
index 8a8f63240b..c22e0982a6 100644
--- a/engines/wintermute/base/base_sub_frame.cpp
+++ b/engines/wintermute/base/base_sub_frame.cpp
@@ -269,7 +269,7 @@ bool BaseSubFrame::draw(int x, int y, BaseObject *registerOwner, float zoomX, fl
Point32 origin(x, y);
Rect32 oldRect = getRect();
Point32 newHotspot;
- TransformStruct transform = TransformStruct(zoomX, zoomY, rotate, _hotspotX, _hotspotY, blendMode, alpha, _mirrorX, _mirrorY, 0, 0);
+ TransformStruct transform = TransformStruct(zoomX, zoomY, (uint32)rotate, _hotspotX, _hotspotY, blendMode, alpha, _mirrorX, _mirrorY, 0, 0);
Rect32 newRect = TransformTools::newRect (oldRect, transform, &newHotspot);
newOrigin = origin - newHotspot;
res = _surface->displayTransform(newOrigin.x, newOrigin.y, oldRect, newRect, transform);