lcl: forms: highDPI: Scale in AfterConstruction when Scaled=true

git-svn-id: trunk@53499 -
This commit is contained in:
ondrej 2016-11-30 23:47:31 +00:00
parent 9d221a90f6
commit 2b35575b4e

View File

@ -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;
{------------------------------------------------------------------------------