mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 17:03:13 +00:00
SCI32: Fix incorrect text width calculation of non-ASCII strings
Fixes Trac#9639.
This commit is contained in:
parent
8abe97dfda
commit
e4b8820762
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user