aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorsylvaintv2013-04-03 00:25:28 +0200
committersylvaintv2013-04-03 00:25:28 +0200
commitf75ad49c679c56b00435e2e30dca4f175f4395bd (patch)
treecf9d2d19e7f14aa3c342682c00d1f0fa046eda1b /engines/hopkins
parentbe5fa9ffdef0d0e2d9241c30d51fe1f1b2538259 (diff)
downloadscummvm-rg350-f75ad49c679c56b00435e2e30dca4f175f4395bd.tar.gz
scummvm-rg350-f75ad49c679c56b00435e2e30dca4f175f4395bd.tar.bz2
scummvm-rg350-f75ad49c679c56b00435e2e30dca4f175f4395bd.zip
HOPKINS: Fix rendering of French accentuated characters
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/font.cpp b/engines/hopkins/font.cpp
index 8bd045448c..e25c11d70e 100644
--- a/engines/hopkins/font.cpp
+++ b/engines/hopkins/font.cpp
@@ -410,7 +410,7 @@ void FontManager::displayTextVesa(int xp, int yp, const Common::String &message,
const char *srcP = message.c_str();
for (;;) {
- char currChar = *srcP++;
+ byte currChar = *srcP++;
if (!currChar)
break;
if (currChar >= 32) {
@@ -428,7 +428,7 @@ void FontManager::displayTextVesa(int xp, int yp, const Common::String &message,
*/
void FontManager::displayText(int xp, int yp, const Common::String &message, int col) {
for (uint idx = 0; idx < message.size(); ++idx) {
- char currentChar = message[idx];
+ byte currentChar = (byte)message[idx];
if (currentChar > 31) {
int characterIndex = currentChar - 32;