mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 23:29:11 +02:00
use mask enabled drawing functions
git-svn-id: trunk@6482 -
This commit is contained in:
parent
4d130c0508
commit
2837a6b930
@ -778,7 +778,10 @@ begin
|
||||
DestRect.Top:=ARect.Top+((ARect.Bottom-ARect.Top-IconHeight) div 2);
|
||||
DestRect.Right:=DestRect.Left+IconWidth;
|
||||
DestRect.Bottom:=DestRect.Top+IconHeight;
|
||||
ItemsListBox.Canvas.CopyRect(DestRect,CurIcon.Canvas,IconRect);
|
||||
StretchMaskBlt(ItemsListBox.Canvas.Handle,
|
||||
DestRect.Left, DestRect.Top, IconWidth, IconHeight,
|
||||
CurIcon.Canvas.Handle, 0, 0, IconWidth, IconHeight,
|
||||
CurIcon.MaskHandle, 0, 0, SRCCOPY);
|
||||
end;
|
||||
inc(x,ButtonWidth);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user