aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2016-01-31 18:42:14 +0100
committerMartin Kiewitz2016-01-31 18:42:14 +0100
commit5299750cf9dce3dec59b7bd95bbac2a25ce62bfd (patch)
treeb7de30ae92c3c21ae59b1ae8fb00abf632a12318
parent56423709482a54f6b65488b80bd674b1965c48c2 (diff)
downloadscummvm-rg350-5299750cf9dce3dec59b7bd95bbac2a25ce62bfd.tar.gz
scummvm-rg350-5299750cf9dce3dec59b7bd95bbac2a25ce62bfd.tar.bz2
scummvm-rg350-5299750cf9dce3dec59b7bd95bbac2a25ce62bfd.zip
SHERLOCK: SS: fix warnings
thanks to eriktorbjorn for pointing those out
-rw-r--r--engines/sherlock/scalpel/scalpel_inventory.cpp16
-rw-r--r--engines/sherlock/scalpel/scalpel_user_interface.cpp6
-rw-r--r--engines/sherlock/scalpel/scalpel_user_interface.h2
3 files changed, 12 insertions, 12 deletions
diff --git a/engines/sherlock/scalpel/scalpel_inventory.cpp b/engines/sherlock/scalpel/scalpel_inventory.cpp
index 19e0b95f7c..c3e20295fd 100644
--- a/engines/sherlock/scalpel/scalpel_inventory.cpp
+++ b/engines/sherlock/scalpel/scalpel_inventory.cpp
@@ -154,16 +154,16 @@ void ScalpelInventory::invCommands(bool slamIt) {
true, _fixedTextGive);
screen.print(Common::Point(INVENTORY_POINTS[4][2], CONTROLS_Y1 + 1),
_invIndex == 0 ? COMMAND_NULL : COMMAND_FOREGROUND,
- "^^", false); // 2 arrows pointing to the left
+ "^^"); // 2 arrows pointing to the left
screen.print(Common::Point(INVENTORY_POINTS[5][2], CONTROLS_Y1 + 1),
_invIndex == 0 ? COMMAND_NULL : COMMAND_FOREGROUND,
- "^", false); // 2 arrows pointing to the left
+ "^"); // 2 arrows pointing to the left
screen.print(Common::Point(INVENTORY_POINTS[6][2], CONTROLS_Y1 + 1),
(_holdings - _invIndex <= 6) ? COMMAND_NULL : COMMAND_FOREGROUND,
- "_", false); // 1 arrow pointing to the right
+ "_"); // 1 arrow pointing to the right
screen.print(Common::Point(INVENTORY_POINTS[7][2], CONTROLS_Y1 + 1),
(_holdings - _invIndex <= 6) ? COMMAND_NULL : COMMAND_FOREGROUND,
- "__", false); // 2 arrows pointing to the right
+ "__"); // 2 arrows pointing to the right
if (_invMode != INVMODE_LOOK)
ui.clearInfo();
} else {
@@ -181,16 +181,16 @@ void ScalpelInventory::invCommands(bool slamIt) {
false, _fixedTextGive);
screen.gPrint(Common::Point(INVENTORY_POINTS[4][2], CONTROLS_Y1),
_invIndex == 0 ? COMMAND_NULL : COMMAND_FOREGROUND,
- "^^", false); // 2 arrows pointing to the left
+ "^^"); // 2 arrows pointing to the left
screen.gPrint(Common::Point(INVENTORY_POINTS[5][2], CONTROLS_Y1),
_invIndex == 0 ? COMMAND_NULL : COMMAND_FOREGROUND,
- "^", false); // 1 arrow pointing to the left
+ "^"); // 1 arrow pointing to the left
screen.gPrint(Common::Point(INVENTORY_POINTS[6][2], CONTROLS_Y1),
(_holdings - _invIndex < 7) ? COMMAND_NULL : COMMAND_FOREGROUND,
- "_", false); // 1 arrow pointing to the right
+ "_"); // 1 arrow pointing to the right
screen.gPrint(Common::Point(INVENTORY_POINTS[7][2], CONTROLS_Y1),
(_holdings - _invIndex < 7) ? COMMAND_NULL : COMMAND_FOREGROUND,
- "__", false); // 2 arrows pointing to the right
+ "__"); // 2 arrows pointing to the right
}
}
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp
index 221555ae99..3c2ed42ad1 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.cpp
+++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp
@@ -469,7 +469,7 @@ void ScalpelUserInterface::pushButton(int num) {
restoreButton(num);
}
-void ScalpelUserInterface::toggleButton(int num) {
+void ScalpelUserInterface::toggleButton(uint16 num) {
Screen &screen = *_vm->_screen;
if (_menuMode != (MenuMode)(num + 1)) {
@@ -1312,7 +1312,7 @@ void ScalpelUserInterface::doMainControl() {
_temp = 12; // no button currently selected
// Check whether the mouse is in any of the command areas
- for (int buttonNr = 0; buttonNr < 12; buttonNr++) {
+ for (uint16 buttonNr = 0; buttonNr < 12; buttonNr++) {
Common::Rect r(MENU_POINTS[buttonNr][0], MENU_POINTS[buttonNr][1],
MENU_POINTS[buttonNr][2], MENU_POINTS[buttonNr][3]);
if (IS_3DO && buttonNr >= 0 && buttonNr <= 2) {
@@ -1351,7 +1351,7 @@ void ScalpelUserInterface::doMainControl() {
byte key = toupper(_keyPress);
- for (int16 buttonId = 0; buttonId < sizeof(_hotkeysIndexed); buttonId++) {
+ for (uint16 buttonId = 0; buttonId < sizeof(_hotkeysIndexed); buttonId++) {
if (key == _hotkeysIndexed[buttonId]) {
pressedButtonId = buttonId;
}
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.h b/engines/sherlock/scalpel/scalpel_user_interface.h
index 9d021bd827..c0b8672a87 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.h
+++ b/engines/sherlock/scalpel/scalpel_user_interface.h
@@ -89,7 +89,7 @@ private:
* have already been drawn. This simply takes care of switching the mode around
* accordingly
*/
- void toggleButton(int num);
+ void toggleButton(uint16 num);
/**
* Print the name of an object in the scene