mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:28:19 +02:00
LCL/TComboboxEx: Draw scaled icons. Issue #40905, patch by foxpas.
(cherry picked from commit 755dea7b4d
)
This commit is contained in:
parent
ab1bf5dbc1
commit
49a4819d96
@ -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