From 45d208b2ec058d2709c3a5da58abff41d08d782c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 25 Oct 2016 23:10:46 -0400 Subject: TITANIC: Further work on mouse cursor enablement logic --- engines/titanic/game/cdrom.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/titanic/game/cdrom.cpp') diff --git a/engines/titanic/game/cdrom.cpp b/engines/titanic/game/cdrom.cpp index cd913d05f7..0d1cd3a6f2 100644 --- a/engines/titanic/game/cdrom.cpp +++ b/engines/titanic/game/cdrom.cpp @@ -50,6 +50,7 @@ void CCDROM::load(SimpleFile *file) { bool CCDROM::MouseDragStartMsg(CMouseDragStartMsg *msg) { if (checkStartDragging(msg)) { + hideMouse(); _tempPos = msg->_mousePos - _bounds; setPosition(msg->_mousePos - _tempPos); return true; @@ -59,6 +60,8 @@ bool CCDROM::MouseDragStartMsg(CMouseDragStartMsg *msg) { } bool CCDROM::MouseDragEndMsg(CMouseDragEndMsg *msg) { + showMouse(); + if (msg->_dropTarget && msg->_dropTarget->getName() == "newComputer") { CCDROMTray *newTray = dynamic_cast(getRoom()->findByName("newTray")); -- cgit v1.2.3