diff options
author | Tobia Tesan | 2013-07-16 22:08:40 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 02:10:42 +0200 |
commit | 381df0c64ac88a704f931b0011d7f3f730c5caba (patch) | |
tree | 8c5ac4168c5912acc1cd56daa4cb05d2b5cf0a65 /engines/wintermute/graphics/transform_tools.cpp | |
parent | 567cd1eb123357fe474066fd73328bb2aeab42ca (diff) | |
download | scummvm-rg350-381df0c64ac88a704f931b0011d7f3f730c5caba.tar.gz scummvm-rg350-381df0c64ac88a704f931b0011d7f3f730c5caba.tar.bz2 scummvm-rg350-381df0c64ac88a704f931b0011d7f3f730c5caba.zip |
WINTERMUTE: Various explicit casts
* for floor/ceil output in transform_tools.cpp
* for projX/Y in transparent_surface.cpp
* in transpaprent_surface.cpp
Diffstat (limited to 'engines/wintermute/graphics/transform_tools.cpp')
-rw-r--r-- | engines/wintermute/graphics/transform_tools.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/wintermute/graphics/transform_tools.cpp b/engines/wintermute/graphics/transform_tools.cpp index 73f48402f4..ff90707615 100644 --- a/engines/wintermute/graphics/transform_tools.cpp +++ b/engines/wintermute/graphics/transform_tools.cpp @@ -60,13 +60,13 @@ namespace Wintermute { float right = MAX(nw1.x, MAX(ne1.x, MAX(sw1.x, se1.x))); Rect32 res; - newHotspot->y = -floor(top); - newHotspot->x = -floor(left); + newHotspot->y = (uint32)(-floor(top)); + newHotspot->x = (uint32)(-floor(left)); - res.top = floor(top) + transform._hotspot.y; - res.bottom = ceil(bottom) + transform._hotspot.y; - res.left = floor(left) + transform._hotspot.x; - res.right = ceil(right) + transform._hotspot.x; + res.top = (int32)(floor(top)) + transform._hotspot.y; + res.bottom = (int32)(ceil(bottom)) + transform._hotspot.y; + res.left = (int32)(floor(left)) + transform._hotspot.x; + res.right = (int32)(ceil(right)) + transform._hotspot.x; return res; } |