mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:59:23 +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
|
EndFormUpdate; // the BeginFormUpdate is in CreateNew
|
||||||
inherited AfterConstruction;
|
inherited AfterConstruction;
|
||||||
|
|
||||||
|
if Scaled then
|
||||||
|
begin
|
||||||
|
ScaleBy(Screen.PixelsPerInch, DesignTimeDPI);
|
||||||
|
FPixelsPerInch := Screen.PixelsPerInch;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user