diff options
author | Strangerke | 2015-12-20 12:27:31 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:30 +0100 |
commit | eaa6f3bd0126c4a3fc51daa7a9be10c0c159e028 (patch) | |
tree | 1e1c0f7fe97d5db2ebf0a566cdc8c95d96c28cf2 | |
parent | 28c74aed05e6b7ea127bb521ea8c456075608b07 (diff) | |
download | scummvm-rg350-eaa6f3bd0126c4a3fc51daa7a9be10c0c159e028.tar.gz scummvm-rg350-eaa6f3bd0126c4a3fc51daa7a9be10c0c159e028.tar.bz2 scummvm-rg350-eaa6f3bd0126c4a3fc51daa7a9be10c0c159e028.zip |
LAB: Fix some GCC warnings
-rw-r--r-- | engines/lab/dispman.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp index fd71e8e74b..f570493e99 100644 --- a/engines/lab/dispman.cpp +++ b/engines/lab/dispman.cpp @@ -550,7 +550,7 @@ uint16 DisplayMan::textLength(TextFont *font, Common::String text) { if (font) { int numChars = text.size(); for (uint16 i = 0; i < numChars; i++) { - length += font->_widths[text[i]]; + length += font->_widths[(byte)text[i]]; } } @@ -572,8 +572,8 @@ void DisplayMan::drawText(TextFont *tf, uint16 x, uint16 y, uint16 color, Common int32 leftInSegment = _screenBytesPerPage - segmentOffset; byte *vgaCur = vgaTop + segmentOffset; - if (tf->_widths[text[i]]) { - byte *cdata = tf->_data + tf->_offsets[text[i]]; + if (tf->_widths[(byte)text[i]]) { + byte *cdata = tf->_data + tf->_offsets[(byte)text[i]]; uint16 bwidth = *cdata++; byte *vgaTemp = vgaCur; byte *vgaTempLine = vgaCur; @@ -634,7 +634,7 @@ void DisplayMan::drawText(TextFont *tf, uint16 x, uint16 y, uint16 color, Common } } - x += tf->_widths[text[i]]; + x += tf->_widths[(byte)text[i]]; } } |