aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-28 17:11:49 +0200
committerEugene Sandulenko2016-05-28 17:11:49 +0200
commit986f4bbbf668cf0a308f50d2188856f94cfdb8d1 (patch)
tree4099d16cadb8cf08ba971e8be129835a99778155 /engines
parent4bb793a72d3ae620ce9a620255cc61c6b07c3b92 (diff)
downloadscummvm-rg350-986f4bbbf668cf0a308f50d2188856f94cfdb8d1.tar.gz
scummvm-rg350-986f4bbbf668cf0a308f50d2188856f94cfdb8d1.tar.bz2
scummvm-rg350-986f4bbbf668cf0a308f50d2188856f94cfdb8d1.zip
SCI: Explicit type conversion. Avoids warnings on number of compilers.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index c6c474fe96..e1b522af68 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -550,7 +550,7 @@ Common::Rect GfxText32::getTextSize(const Common::String &text, int16 maxWidth,
// before the compiler took over.
// Verify this by looking at a game that uses a
// scriptWidth other than 320, like LSL7
- maxWidth = _scaledWidth * (scriptWidth * 0.6) / scriptWidth;
+ maxWidth = (int16)(_scaledWidth * (scriptWidth * 0.6) / scriptWidth);
}
result.right = maxWidth;