diff options
author | Colin Snover | 2016-11-02 21:45:44 -0500 |
---|---|---|
committer | Colin Snover | 2016-11-02 21:45:44 -0500 |
commit | e4b8820762f10848205266c59bfcb80b2177e060 (patch) | |
tree | aa4273e6a2553fc4ada69e305ce0d877f6bbb191 /engines/sci | |
parent | 8abe97dfdad1fc9b44bded185ff5c5a00fa2f2d3 (diff) | |
download | scummvm-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.cpp | 2 |
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) { |