aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-18 23:12:43 -0400
committerPaul Gilbert2015-07-18 23:12:43 -0400
commitf415fe49a74c3c38834b4a40f4720d11676c9be0 (patch)
treee2e5300b1e5c37c6a7cfe5a94e52fbd2cdb867b2
parentd32e8f40c30fa714929e9a4845439b3e5542c535 (diff)
downloadscummvm-rg350-f415fe49a74c3c38834b4a40f4720d11676c9be0.tar.gz
scummvm-rg350-f415fe49a74c3c38834b4a40f4720d11676c9be0.tar.bz2
scummvm-rg350-f415fe49a74c3c38834b4a40f4720d11676c9be0.zip
SHERLOCK: RT: Fix warnings
-rw-r--r--engines/sherlock/tattoo/widget_inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/tattoo/widget_inventory.cpp b/engines/sherlock/tattoo/widget_inventory.cpp
index c6ff39fd55..241eaca182 100644
--- a/engines/sherlock/tattoo/widget_inventory.cpp
+++ b/engines/sherlock/tattoo/widget_inventory.cpp
@@ -384,7 +384,7 @@ void WidgetInventoryVerbs::handleEvents() {
ui._scrollHighlight = SH_NONE;
banishWindow();
- if (_outsideMenu && !innerBounds.contains(mousePos) || ui._keyState.keycode == Common::KEYCODE_ESCAPE) {
+ if ((_outsideMenu && !innerBounds.contains(mousePos)) || ui._keyState.keycode == Common::KEYCODE_ESCAPE) {
_owner->_invVerbMode = 0;
} else if (innerBounds.contains(mousePos)) {
_outsideMenu = false;
@@ -472,7 +472,7 @@ void WidgetInventoryVerbs::highlightControls() {
// See if the highlighted verb has changed
if (_invVerbSelect != _oldInvVerbSelect) {
// Draw the list again, with the new highlighting
- for (uint idx = 0; idx < _inventCommands.size(); ++idx) {
+ for (int idx = 0; idx < (int)_inventCommands.size(); ++idx) {
byte color = (idx == _invVerbSelect) ? COMMAND_HIGHLIGHTED : INFO_TOP;
_surface.writeString(_inventCommands[idx], Common::Point(
(_bounds.width() - _surface.stringWidth(_inventCommands[idx])) / 2,