diff options
author | Paul Gilbert | 2016-12-18 17:01:11 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-12-18 17:01:11 -0500 |
commit | cf061845ba68a6c2a7a84898c56b4d4ffc9b714e (patch) | |
tree | e19b521ec34c967de097714e77a063ee59f40c40 /engines/titanic | |
parent | 6544c512626e851a429f64d99f64f4bb4d17e368 (diff) | |
download | scummvm-rg350-cf061845ba68a6c2a7a84898c56b4d4ffc9b714e.tar.gz scummvm-rg350-cf061845ba68a6c2a7a84898c56b4d4ffc9b714e.tar.bz2 scummvm-rg350-cf061845ba68a6c2a7a84898c56b4d4ffc9b714e.zip |
TITANIC: Fix starting to drag inventory items
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/pet_control/pet_inventory_glyphs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_inventory_glyphs.cpp b/engines/titanic/pet_control/pet_inventory_glyphs.cpp index 75b1fc9614..74d769af6d 100644 --- a/engines/titanic/pet_control/pet_inventory_glyphs.cpp +++ b/engines/titanic/pet_control/pet_inventory_glyphs.cpp @@ -118,15 +118,15 @@ bool CPetInventoryGlyph::dragGlyph(const Point &topLeft, CMouseDragStartMsg *msg petControl->removeFromInventory(_item, carryParcel, false, true); petControl->removeFromInventory(_item, false, false); - carryParcel->setPosition(Point(msg->_mousePos.x - carryParcel->getBounds().width() / 2, - msg->_mousePos.y - carryParcel->getBounds().height() / 2)); + carryParcel->setPosition(Point(msg->_mousePos.x - carryParcel->_bounds.width() / 2, + msg->_mousePos.y - carryParcel->_bounds.height() / 2)); carryParcel->setPosition(Point(SCREEN_WIDTH, SCREEN_HEIGHT)); item = carryParcel; } else { petControl->removeFromInventory(_item, false, true); - _item->setPosition(Point(msg->_mousePos.x - _item->getBounds().width() / 2, - msg->_mousePos.y - _item->getBounds().height() / 2)); + _item->setPosition(Point(msg->_mousePos.x - _item->_bounds.width() / 2, + msg->_mousePos.y - _item->_bounds.height() / 2)); _item->setVisible(true); } |