diff options
author | Paul Gilbert | 2016-07-31 18:08:57 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-31 18:08:57 -0400 |
commit | 7ace328cb86a83db670ba0401176ad108a9c107c (patch) | |
tree | 1126a29837ae4458d585b0923549d9e9af29a648 /engines/titanic/pet_control | |
parent | a0f051a374162ef0e1770c25b4621c6b4d4da9ee (diff) | |
download | scummvm-rg350-7ace328cb86a83db670ba0401176ad108a9c107c.tar.gz scummvm-rg350-7ace328cb86a83db670ba0401176ad108a9c107c.tar.bz2 scummvm-rg350-7ace328cb86a83db670ba0401176ad108a9c107c.zip |
TITANIC: Fix various warnings
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_load.h | 2 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_load_save.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_load_save.h | 2 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_save.cpp | 2 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_save.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_load.h b/engines/titanic/pet_control/pet_load.h index ad0b026818..421531974d 100644 --- a/engines/titanic/pet_control/pet_load.h +++ b/engines/titanic/pet_control/pet_load.h @@ -42,7 +42,7 @@ public: /** * Highlight any currently highlighted element */ - virtual void highlightCurrent() { resetSlots(); } + virtual void highlightCurrent(const Point &pt) { resetSlots(); } /** * Returns the tooltip text for when the glyph is selected diff --git a/engines/titanic/pet_control/pet_load_save.cpp b/engines/titanic/pet_control/pet_load_save.cpp index 77b6126249..aebe43551e 100644 --- a/engines/titanic/pet_control/pet_load_save.cpp +++ b/engines/titanic/pet_control/pet_load_save.cpp @@ -81,7 +81,7 @@ bool CPetLoadSave::MouseButtonDownMsg(const Point &pt) { return false; } -bool CPetLoadSave::KeyCharMsg(Common::KeyCode key) { +bool CPetLoadSave::KeyCharMsg(int key) { switch (key) { case Common::KEYCODE_TAB: case Common::KEYCODE_DOWN: diff --git a/engines/titanic/pet_control/pet_load_save.h b/engines/titanic/pet_control/pet_load_save.h index 687bd13e58..dd1c907ef1 100644 --- a/engines/titanic/pet_control/pet_load_save.h +++ b/engines/titanic/pet_control/pet_load_save.h @@ -91,7 +91,7 @@ public: /** * Handles keypresses when the glyph is focused */ - virtual bool KeyCharMsg(Common::KeyCode key); + virtual bool KeyCharMsg(int key); /** * Resets highlighting on the save slots diff --git a/engines/titanic/pet_control/pet_save.cpp b/engines/titanic/pet_control/pet_save.cpp index 341053948e..b5e16736bc 100644 --- a/engines/titanic/pet_control/pet_save.cpp +++ b/engines/titanic/pet_control/pet_save.cpp @@ -48,7 +48,7 @@ bool CPetSave::MouseButtonUpMsg(const Point &pt) { } } -void CPetSave::highlightCurrent() { +void CPetSave::highlightCurrent(const Point &pt) { resetSlots(); highlightSave(_savegameSlotNum); } diff --git a/engines/titanic/pet_control/pet_save.h b/engines/titanic/pet_control/pet_save.h index d37f4e3012..54e91e4c76 100644 --- a/engines/titanic/pet_control/pet_save.h +++ b/engines/titanic/pet_control/pet_save.h @@ -47,7 +47,7 @@ public: /** * Highlight any currently highlighted element */ - virtual void highlightCurrent(); + virtual void highlightCurrent(const Point &pt); /** * Returns the tooltip text for when the glyph is selected |