From 9578bab703b6c1e32a547179a347b7bea9c2e054 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Wed, 18 Sep 2013 14:02:07 +0200 Subject: WINTERMUTE: Explicitly cast zoom for float version of TransformStruct --- engines/wintermute/graphics/transform_struct.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/wintermute') diff --git a/engines/wintermute/graphics/transform_struct.cpp b/engines/wintermute/graphics/transform_struct.cpp index 68cc1d9ad7..643c6b413f 100644 --- a/engines/wintermute/graphics/transform_struct.cpp +++ b/engines/wintermute/graphics/transform_struct.cpp @@ -49,8 +49,8 @@ TransformStruct::TransformStruct(int32 zoomX, int32 zoomY, uint32 angle, int32 h } TransformStruct::TransformStruct(float zoomX, float zoomY, uint32 angle, int32 hotspotX, int32 hotspotY, TSpriteBlendMode blendMode, uint32 rgbaMod, bool mirrorX, bool mirrorY, int32 offsetX, int32 offsetY) { - init(Point32(zoomX / 100.0 * kDefaultZoomX, - zoomY / 100.0 * kDefaultZoomY), + init(Point32((int32)(zoomX / 100.0 * kDefaultZoomX), + (int32)(zoomY / 100.0 * kDefaultZoomY)), angle, Point32(hotspotX, hotspotY), false, -- cgit v1.2.3