KYRA: Cast char to uint8 before passing it to getCharWidth.
This assures getCharWidth really gets the character number and now sign extended version of it in case char is signed.
This commit is contained in:
parent
efa52cb79c
commit
77959acd51
1 changed files with 2 additions and 2 deletions
|
@ -2622,7 +2622,7 @@ void KyraEngine_HoF::seq_displayScrollText(uint8 *data, const ScreenDim *d, int
|
|||
while (*str2) {
|
||||
cChar[0] = *str2;
|
||||
_screen->printText(cChar, x, y, col1++, 0);
|
||||
x += _screen->getCharWidth(*str2++);
|
||||
x += _screen->getCharWidth((uint8)*str2++);
|
||||
}
|
||||
palCycle = true;
|
||||
} else if (!strcmp(str, specialData[1])) {
|
||||
|
@ -2631,7 +2631,7 @@ void KyraEngine_HoF::seq_displayScrollText(uint8 *data, const ScreenDim *d, int
|
|||
while (*str2) {
|
||||
cChar[0] = *str2;
|
||||
_screen->printText(cChar, x, y, col1--, 0);
|
||||
x += _screen->getCharWidth(*str2++);
|
||||
x += _screen->getCharWidth((uint8)*str2++);
|
||||
}
|
||||
palCycle = true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue