SCI32: Fix incorrect text width calculation of non-ASCII strings

Fixes Trac#9639.
This commit is contained in:
Colin Snover 2016-11-02 21:45:44 -05:00
parent 8abe97dfda
commit e4b8820762

View File

@ -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) {