aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;