diff options
-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); } } |