aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2016-11-02 21:45:44 -0500
committerColin Snover2016-11-02 21:45:44 -0500
commite4b8820762f10848205266c59bfcb80b2177e060 (patch)
treeaa4273e6a2553fc4ada69e305ce0d877f6bbb191 /engines/sci
parent8abe97dfdad1fc9b44bded185ff5c5a00fa2f2d3 (diff)
downloadscummvm-rg350-e4b8820762f10848205266c59bfcb80b2177e060.tar.gz
scummvm-rg350-e4b8820762f10848205266c59bfcb80b2177e060.tar.bz2
scummvm-rg350-e4b8820762f10848205266c59bfcb80b2177e060.zip
SCI32: Fix incorrect text width calculation of non-ASCII strings
Fixes Trac#9639.
Diffstat (limited to 'engines/sci')
-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 d142ff75c3..7375fdeffd 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -527,7 +527,7 @@ int16 GfxText32::getTextWidth(const uint index, uint length) const {
--length;
}
} else {
- width += font->getCharWidth(currentChar);
+ width += font->getCharWidth((unsigned char)currentChar);
}
if (length > 0) {