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:
parent
6e1a7a15cd
commit
ba1c9c6c6d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user