[Scummvm-git-logs] scummvm master -> 06566151f92d2aa6d40b81972b3c342f038a2596

dreammaster dreammaster at scummvm.org
Sun Jul 30 21:58:28 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
06566151f9 TITANIC: Update cursor after transitioning to new views


Commit: 06566151f92d2aa6d40b81972b3c342f038a2596
    https://github.com/scummvm/scummvm/commit/06566151f92d2aa6d40b81972b3c342f038a2596
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-07-30T15:58:22-04:00

Commit Message:
TITANIC: Update cursor after transitioning to new views

Changed paths:
    engines/titanic/core/view_item.cpp


diff --git a/engines/titanic/core/view_item.cpp b/engines/titanic/core/view_item.cpp
index 4e37fd2..243d47f 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);
 	}
 }
 





More information about the Scummvm-git-logs mailing list