mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 09:16:13 +02:00
lcl: forms: highDPI: Scale in AfterConstruction when Scaled=true
git-svn-id: trunk@53499 -
This commit is contained in:
parent
9d221a90f6
commit
2b35575b4e
@ -158,6 +158,12 @@ begin
|
||||
|
||||
EndFormUpdate; // the BeginFormUpdate is in CreateNew
|
||||
inherited AfterConstruction;
|
||||
|
||||
if Scaled then
|
||||
begin
|
||||
ScaleBy(Screen.PixelsPerInch, DesignTimeDPI);
|
||||
FPixelsPerInch := Screen.PixelsPerInch;
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user