From cf061845ba68a6c2a7a84898c56b4d4ffc9b714e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 18 Dec 2016 17:01:11 -0500 Subject: TITANIC: Fix starting to drag inventory items --- engines/titanic/pet_control/pet_inventory_glyphs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/titanic/pet_control/pet_inventory_glyphs.cpp') 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); } -- cgit v1.2.3