aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_sub_frame.cpp
diff options
context:
space:
mode:
authorTobia Tesan2013-06-27 16:16:26 +0200
committerTobia Tesan2013-07-31 23:52:12 +0200
commit66ba2ea4558bab4583a7d7bb27e1e254c34f579f (patch)
treed84426f9afbc80aca7a58e0a4bebe3cef87537b7 /engines/wintermute/base/base_sub_frame.cpp
parent3c0089e31e1392f38cfb0e13d7c4d395bad4f949 (diff)
downloadscummvm-rg350-66ba2ea4558bab4583a7d7bb27e1e254c34f579f.tar.gz
scummvm-rg350-66ba2ea4558bab4583a7d7bb27e1e254c34f579f.tar.bz2
scummvm-rg350-66ba2ea4558bab4583a7d7bb27e1e254c34f579f.zip
WINTERMUTE: Refactor some bits to use TransformStruct
Diffstat (limited to 'engines/wintermute/base/base_sub_frame.cpp')
-rw-r--r--engines/wintermute/base/base_sub_frame.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/wintermute/base/base_sub_frame.cpp b/engines/wintermute/base/base_sub_frame.cpp
index d9620d3939..b51b723f61 100644
--- a/engines/wintermute/base/base_sub_frame.cpp
+++ b/engines/wintermute/base/base_sub_frame.cpp
@@ -265,9 +265,7 @@ bool BaseSubFrame::draw(int x, int y, BaseObject *registerOwner, float zoomX, fl
TransformStruct transform = TransformStruct(zoomX, zoomY, rotate, _hotspotX, _hotspotY, blendMode, alpha, _mirrorX, _mirrorY, 0, 0);
Rect32 newRect = TransformTools::newRect (oldRect, transform, &newHotspot);
newOrigin = origin - newHotspot;
- // When the transform functions are refactored to use TransformStruct this will be like:
- // res = _surface->displayTransform(newOrigin.x, newOrigin.y, oldRect, newRect, transformStruct);
- res = _surface->displayTransform((int)(x - _hotspotX * (zoomX / 100)), (int)(y - _hotspotY * (zoomY / 100)), _hotspotX, _hotspotY, getRect(), zoomX, zoomY, alpha, rotate, blendMode, _mirrorX, _mirrorY);
+ res = _surface->displayTransform(newOrigin.x, newOrigin.y, oldRect, newRect, transform);
} else {
if (zoomX == 100 && zoomY == 100) {
res = _surface->displayTrans(x - _hotspotX, y - _hotspotY, getRect(), alpha, blendMode, _mirrorX, _mirrorY);