mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 14:57:57 +02:00
LCL/TComboboxEx: Draw scaled icons. Issue #40905, patch by foxpas.
This commit is contained in:
parent
3ad25b1afc
commit
755dea7b4d
@ -396,7 +396,7 @@ begin { do not call inherited ! }
|
||||
then aImgPoint.X:=ARect.Left+aIndent
|
||||
else aImgPoint.X:=ARect.Right-aIndent-ImagesSize.cx;
|
||||
aImgPoint.Y:=(ARect.Bottom+ARect.Top-ImagesSize.cy) div 2;
|
||||
ThemeServices.DrawIcon(Canvas, aDetail, aImgPoint, Images, aItemIndex);
|
||||
Images.DrawForPPI(Canvas, aImgPoint.X, aImgPoint.Y, aItemIndex, 0, Font.PixelsPerInch, GetCanvasScaleFactor, aEnabled)
|
||||
end;
|
||||
inc(aIndent, ImagesSize.cx+2*cItemIndent);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user