From e4b8820762f10848205266c59bfcb80b2177e060 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 2 Nov 2016 21:45:44 -0500 Subject: SCI32: Fix incorrect text width calculation of non-ASCII strings Fixes Trac#9639. --- engines/sci/graphics/text32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') 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) { -- cgit v1.2.3