WINTERMUTE: Fix order of arguments in sprite rotation

This commit is contained in:
Tobia Tesan 2016-02-23 22:49:40 +01:00
parent 64e21078da
commit a4b3131209

View File

@ -268,7 +268,7 @@ bool BaseSubFrame::draw(int x, int y, BaseObject *registerOwner, float zoomX, fl
Common::Point origin(x, y);
Common::Point newOrigin;
Rect32 oldRect1 = getRect();
Common::Rect oldRect(oldRect1.top, oldRect1.left, oldRect1.bottom, oldRect1.right);
Common::Rect oldRect(oldRect1.left, oldRect1.top, oldRect1.right, oldRect1.bottom);
Common::Point newHotspot;
Graphics::TransformStruct transform = Graphics::TransformStruct(zoomX, zoomY, (uint32)rotate, _hotspotX, _hotspotY, blendMode, alpha, _mirrorX, _mirrorY, 0, 0);
Rect32 newRect = Graphics::TransformTools::newRect(oldRect, transform, &newHotspot);