aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo/display.cpp')
-rwxr-xr-xengines/hugo/display.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index fde97c8f00..fe30ab0edb 100755
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -396,7 +396,7 @@ int16 Screen::stringLength(char *s) {
debugC(2, kDebugDisplay, "stringLength(%s)", s);
for (sum = 0; *s; s++)
- sum += *(fontArr[*s] + 1) + 1;
+ sum += *(fontArr[(uint)*s] + 1) + 1;
return(sum);
}
@@ -419,8 +419,8 @@ void Screen::writeStr(int16 sx, int16 sy, char *s, byte color) {
sx = center(s);
for (; *s; s++) {
- writeChr(sx, sy, color, (char *)font[*s]);
- sx += *(font[*s] + 1) + 1;
+ writeChr(sx, sy, color, (char *)font[(uint)*s]);
+ sx += *(font[(uint)*s] + 1) + 1;
}
}