aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2013-09-05 08:11:27 +0200
committerStrangerke2013-09-05 08:11:27 +0200
commitc0d9677979c6fdc6272a49957f617f282363078a (patch)
tree0aac37fd53040dfe05aa76bf8eb284e3dd7299a5 /engines
parent8011d24ee20f6942a8b153849413002740f3ff78 (diff)
downloadscummvm-rg350-c0d9677979c6fdc6272a49957f617f282363078a.tar.gz
scummvm-rg350-c0d9677979c6fdc6272a49957f617f282363078a.tar.bz2
scummvm-rg350-c0d9677979c6fdc6272a49957f617f282363078a.zip
AVALANCHE: Fix one more GCC warning
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/dropdown2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/avalanche/dropdown2.cpp b/engines/avalanche/dropdown2.cpp
index 5f419d7542..fefdaa13c9 100644
--- a/engines/avalanche/dropdown2.cpp
+++ b/engines/avalanche/dropdown2.cpp
@@ -336,13 +336,15 @@ void Dropdown::drawMenuText(int16 x, int16 y, char trigger, Common::String text,
ander = 170;
fontType font;
- for (byte i = 0; i < text.size(); i++)
+ for (byte i = 0; i < text.size(); i++) {
for (byte j = 0; j < 8; j++) {
- font[text[i]][j] = _vm->_gyro->characters[text[i]][j] & ander; // Set the font.
+ byte idx = text[i];
+ font[idx][j] = _vm->_gyro->characters[idx][j] & ander; // Set the font.
// And set the background of the text to the desired color.
for (byte k = 0; k < 8; k++)
*(byte *)_vm->_graphics->_surface.getBasePtr(x * 8 + i * 8 + k, y + j) = backgroundColor;
}
+ }
_vm->_graphics->drawText(_vm->_graphics->_surface, text, font, 8, x * 8, y, fontColor);