The hotspot is already included in the shift.

This became visible when dragging an image together with a cursor that has a reasonable large hotspot. In this case the cursor and the bitmap were shifted to much.
This commit is contained in:
czeidler 2012-08-09 13:33:01 +12:00
parent 6e1a7a15cd
commit ba1c9c6c6d

View File

@ -953,7 +953,7 @@ HWInterface::_AdoptDragBitmap(const ServerBitmap* bitmap, const BPoint& offset)
bitmapFrame.OffsetBy(shift);
fCursorAndDragBitmap = new ServerCursor(combindedBounds,
bitmap->ColorSpace(), 0, hotspot + shift);
bitmap->ColorSpace(), 0, shift);
// clear the combined buffer
uint8* dst = (uint8*)fCursorAndDragBitmap->Bits();