aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure/gui.cpp
diff options
context:
space:
mode:
authorBorja Lorente2016-07-13 14:47:32 +0200
committerBorja Lorente2016-08-14 18:54:52 +0200
commit777923be660749e792d993be9f8f2c08fb801dc4 (patch)
tree4bdf16a324d6efb6d690ca89d715f641c3bd3708 /engines/macventure/gui.cpp
parent31a32963b4047e54fa1af93e4bf28c99a72ed580 (diff)
downloadscummvm-rg350-777923be660749e792d993be9f8f2c08fb801dc4.tar.gz
scummvm-rg350-777923be660749e792d993be9f8f2c08fb801dc4.tar.bz2
scummvm-rg350-777923be660749e792d993be9f8f2c08fb801dc4.zip
MACVENTURE: Correct object drop position
Diffstat (limited to 'engines/macventure/gui.cpp')
-rw-r--r--engines/macventure/gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp
index 7eccb16a95..71a7d0c132 100644
--- a/engines/macventure/gui.cpp
+++ b/engines/macventure/gui.cpp
@@ -681,12 +681,12 @@ void Gui::drawObjectsInWindow(WindowReference target, Graphics::ManagedSurface *
surface, pos.x, pos.y, kBlitOR);
// For test
- /*surface->frameRect(Common::Rect(
+ surface->frameRect(Common::Rect(
pos.x,
pos.y,
pos.x + _assets[child]->getWidth() + 1,
pos.y + _assets[child]->getHeight() + 1), kColorGreen);
- */
+
}
}
@@ -991,7 +991,7 @@ void Gui::handleDragRelease(Common::Point pos, bool shiftPressed, bool isDoubleC
if (_draggedObj.id != 0) {
if (_draggedObj.hasMoved) {
ObjID destObject = getWindowData(destinationWindow).objRef;
- pos -= _draggedObj.startPos;
+ pos -= (_draggedObj.startPos - _draggedObj.mouseOffset);
pos = localize(pos, _draggedObj.startWin, destinationWindow);
debug("drop the object at obj %d, pos (%d, %d)", destObject, pos.x, pos.y);