aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/cdrom.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-10-25 23:10:46 -0400
committerPaul Gilbert2016-10-25 23:10:46 -0400
commit45d208b2ec058d2709c3a5da58abff41d08d782c (patch)
tree85262989cb76a9e78cf6156027f50a7ea799438d /engines/titanic/game/cdrom.cpp
parenteb6fa08311d5b7b7dcdd6e8d0b14854fb097d97a (diff)
downloadscummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.tar.gz
scummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.tar.bz2
scummvm-rg350-45d208b2ec058d2709c3a5da58abff41d08d782c.zip
TITANIC: Further work on mouse cursor enablement logic
Diffstat (limited to 'engines/titanic/game/cdrom.cpp')
-rw-r--r--engines/titanic/game/cdrom.cpp3
1 files changed, 3 insertions, 0 deletions
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<CCDROMTray *>(getRoom()->findByName("newTray"));