diff options
author | Tobia Tesan | 2013-09-18 14:02:07 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-09-18 18:19:19 +0200 |
commit | 9578bab703b6c1e32a547179a347b7bea9c2e054 (patch) | |
tree | 54984454bbb093e6703907032b5e4d7e30030fb7 /engines/wintermute | |
parent | 64a3294ec5698db299d224229d6401417acdc9f6 (diff) | |
download | scummvm-rg350-9578bab703b6c1e32a547179a347b7bea9c2e054.tar.gz scummvm-rg350-9578bab703b6c1e32a547179a347b7bea9c2e054.tar.bz2 scummvm-rg350-9578bab703b6c1e32a547179a347b7bea9c2e054.zip |
WINTERMUTE: Explicitly cast zoom for float version of TransformStruct
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/graphics/transform_struct.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |