diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/illusions/duckman/menusystem_duckman.cpp | 4 | ||||
-rw-r--r-- | engines/illusions/illusions.cpp | 2 | ||||
-rw-r--r-- | engines/illusions/menusystem.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/illusions/duckman/menusystem_duckman.cpp b/engines/illusions/duckman/menusystem_duckman.cpp index 367eb28312..a36a22d8e7 100644 --- a/engines/illusions/duckman/menusystem_duckman.cpp +++ b/engines/illusions/duckman/menusystem_duckman.cpp @@ -361,7 +361,7 @@ int MenuActionUpdateSlider::calcNewSliderValue(int newOffset) { int start = 0; int end = 0; int currentPosition = 0; - for (int i = 0; i < text.size(); i++) { + for (uint i = 0; i < text.size(); i++) { switch (text[i]) { case '{' : start = i; break; case '}' : end = i; break; @@ -386,7 +386,7 @@ int MenuActionUpdateSlider::calcNewSliderValue(int newOffset) { void MenuActionUpdateSlider::setSliderValue(uint8 newValue) { int start = 0; Common::String text = _menuItem->getText(); - for (int i = 0; i < text.size(); i++) { + for (uint i = 0; i < text.size(); i++) { switch (text[i]) { case '{' : start = i; break; case '|' : text.setChar('~', i); break; diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp index 912c4f6975..20ae8ea17a 100644 --- a/engines/illusions/illusions.cpp +++ b/engines/illusions/illusions.cpp @@ -64,7 +64,7 @@ namespace Illusions { char *debugW2I(byte *wstr) { static char buf[65]; char *p = buf; - int i = 0; + uint i = 0; while (*wstr != 0 && i < sizeof(buf) - 1) { *p++ = *wstr; wstr += 2; diff --git a/engines/illusions/menusystem.cpp b/engines/illusions/menusystem.cpp index 149070d7a7..f61adb42bd 100644 --- a/engines/illusions/menusystem.cpp +++ b/engines/illusions/menusystem.cpp @@ -586,8 +586,8 @@ bool BaseMenuSystem::calcMenuItemTextPositionAtPoint(Common::Point pt, int &offs Common::String text = menuItem->getText(); FontResource *font = _vm->_dict->findFont(_activeMenu->_fontId); - uint curX = 0; - for (int i = 0; i < text.size(); i++) { + int curX = 0; + for (uint i = 0; i < text.size(); i++) { int16 w = font->getCharInfo(text[i])->_width; if (x >= curX && x <= curX + w) { offset = i; |