diff options
author | Paul Gilbert | 2017-07-30 15:58:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-07-30 15:58:22 -0400 |
commit | 06566151f92d2aa6d40b81972b3c342f038a2596 (patch) | |
tree | c3a51be36f6cde0e03da854e55a295c349548ac5 /engines | |
parent | 0bc4248e34ada20b68db2dab69ca02e3afccd807 (diff) | |
download | scummvm-rg350-06566151f92d2aa6d40b81972b3c342f038a2596.tar.gz scummvm-rg350-06566151f92d2aa6d40b81972b3c342f038a2596.tar.bz2 scummvm-rg350-06566151f92d2aa6d40b81972b3c342f038a2596.zip |
TITANIC: Update cursor after transitioning to new views
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/core/view_item.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/core/view_item.cpp b/engines/titanic/core/view_item.cpp index 4e37fd23be..243d47f3fd 100644 --- a/engines/titanic/core/view_item.cpp +++ b/engines/titanic/core/view_item.cpp @@ -27,6 +27,7 @@ #include "titanic/core/view_item.h" #include "titanic/messages/messages.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/titanic.h" namespace Titanic { @@ -163,6 +164,11 @@ void CViewItem::enterView(CViewItem *newView) { petControl->enterRoom(newRoom); } } + + // WORKAROUND: Do a dummy mouse movement, to allow for the correct cursor + // to be set for the current position in the new view + CMouseMoveMsg moveMsg(g_vm->_events->getMousePos(), 0); + newView->MouseMoveMsg(&moveMsg); } } |