mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 05:18:00 +02:00
lcl: combobox, listbox: assign Font.PixelsPerInch to Canvas for custom draw events.
git-svn-id: trunk@54914 -
This commit is contained in:
parent
575c84d642
commit
3f56e69dc6
@ -1015,7 +1015,10 @@ begin
|
||||
begin
|
||||
FCanvas.Handle := DC;
|
||||
if Font<>nil then
|
||||
begin
|
||||
FCanvas.Font := Font;
|
||||
FCanvas.Font.PixelsPerInch := Font.PixelsPerInch;
|
||||
end;
|
||||
if Brush<>nil then
|
||||
FCanvas.Brush := Brush;
|
||||
if (ItemID <> UINT(-1)) and (odSelected in ItemState) then
|
||||
|
@ -271,7 +271,10 @@ begin
|
||||
begin
|
||||
FCanvas.Handle := DC;
|
||||
if Assigned(Font) then
|
||||
begin
|
||||
FCanvas.Font := Font;
|
||||
FCanvas.Font.PixelsPerInch := Font.PixelsPerInch;
|
||||
end;
|
||||
if Assigned(Brush) then
|
||||
FCanvas.Brush := Brush;
|
||||
if (ItemID <> UINT(-1)) and (odSelected in ItemState) then
|
||||
|
Loading…
Reference in New Issue
Block a user