mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 20:34:12 +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;
|
--length;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
width += font->getCharWidth(currentChar);
|
width += font->getCharWidth((unsigned char)currentChar);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length > 0) {
|
if (length > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user