[Scummvm-git-logs] scummvm master -> e4b8820762f10848205266c59bfcb80b2177e060
csnover
csnover at users.noreply.github.com
Thu Nov 3 03:46:28 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e4b8820762 SCI32: Fix incorrect text width calculation of non-ASCII strings
Commit: e4b8820762f10848205266c59bfcb80b2177e060
https://github.com/scummvm/scummvm/commit/e4b8820762f10848205266c59bfcb80b2177e060
Author: Colin Snover (github.com at zetafleet.com)
Date: 2016-11-02T21:45:44-05:00
Commit Message:
SCI32: Fix incorrect text width calculation of non-ASCII strings
Fixes Trac#9639.
Changed paths:
engines/sci/graphics/text32.cpp
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index d142ff7..7375fde 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) {
More information about the Scummvm-git-logs
mailing list