mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 07:09:07 +02:00
Improve examples/DragImageList. Issue #20164, patch from Flávio Etrusco
git-svn-id: trunk@32356 -
This commit is contained in:
parent
ae9dead608
commit
5cae5f037f
@ -95,7 +95,7 @@ begin
|
|||||||
FDragImages.Width := Bitmap.Width;
|
FDragImages.Width := Bitmap.Width;
|
||||||
FDragImages.Height := Bitmap.Height;
|
FDragImages.Height := Bitmap.Height;
|
||||||
FDragImages.Add(Bitmap, nil);
|
FDragImages.Add(Bitmap, nil);
|
||||||
FDragImages.DragHotspot := Point(Bitmap.Width, Bitmap.Height);
|
FDragImages.DragHotspot := Point(Bitmap.Width div 2, Bitmap.Height div 2);
|
||||||
Bitmap.Free;
|
Bitmap.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user