Skip to content

Commit

Permalink
SCI32: Fix incorrect text width calculation of non-ASCII strings
Browse files Browse the repository at this point in the history
Fixes Trac#9639.
  • Loading branch information
csnover committed Nov 3, 2016
1 parent 8abe97d commit e4b8820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/graphics/text32.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit e4b8820

Please sign in to comment.