diff options
-rw-r--r-- | engines/agi/keyboard.cpp | 8 | ||||
-rw-r--r-- | engines/agi/text.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 9c401e067c..1aabac9053 100644 --- a/engines/agi/keyboard.cpp +++ b/engines/agi/keyboard.cpp @@ -171,8 +171,8 @@ int handle_controller(int key) { } } - if (mouse.y >= game.line_user_input * CHAR_LINES && - mouse.y <= (game.line_user_input + 1) * CHAR_LINES) { + if ((int)mouse.y >= game.line_user_input * CHAR_LINES && + (int)mouse.y <= (game.line_user_input + 1) * CHAR_LINES) { if (_text->predictiveDialog()) { strcpy((char *)game.input_buffer, _text->_predictiveResult); handle_keys(KEY_ENTER); @@ -212,8 +212,8 @@ void handle_getstring(int key) { switch (key) { case BUTTON_LEFT: - if (mouse.y >= stringdata.y * CHAR_LINES && - mouse.y <= (stringdata.y + 1) * CHAR_LINES) { + if ((int)mouse.y >= stringdata.y * CHAR_LINES && + (int)mouse.y <= (stringdata.y + 1) * CHAR_LINES) { if (_text->predictiveDialog()) { strcpy(game.strings[stringdata.str], _text->_predictiveResult); new_input_mode(INPUT_NORMAL); diff --git a/engines/agi/text.h b/engines/agi/text.h index ede10dbc44..3fbcce1289 100644 --- a/engines/agi/text.h +++ b/engines/agi/text.h @@ -74,7 +74,7 @@ private: int _wordNumber; - int _wordPosition; + uint _wordPosition; bool _nextIsActive; bool _addIsActive; |