use mask enabled drawing functions

git-svn-id: trunk@6482 -
This commit is contained in:
micha 2005-01-05 10:04:22 +00:00
parent 4d130c0508
commit 2837a6b930

View File

@ -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;