- if (fullScreen)
- // This line uses the whole screen...
- retValue = m_dragImage->BeginDrag(wxPoint(0, 0), this, TRUE);
- // while this line restricts dragging to the parent frame.
- // retValue = m_dragImage->BeginDrag(wxPoint(0, 0), this, GetParent());
- else
- retValue = m_dragImage->BeginDrag(wxPoint(0, 0), this);
+ // The offset between the top-left of the shape image and the current shape position
+ wxPoint beginDragHotSpot = m_dragStartPos - m_draggedShape->GetPosition();
+
+ // Now we do this inside the implementation: always assume
+ // coordinates relative to the capture window (client coordinates)