lcl: forms: use Monitor.PixelsPerInch for default scaling

git-svn-id: trunk@53689 -
This commit is contained in:
ondrej 2016-12-15 08:20:18 +00:00
parent f315aaac55
commit 172aa765ac

View File

@ -159,9 +159,9 @@ begin
EndFormUpdate; // the BeginFormUpdate is in CreateNew EndFormUpdate; // the BeginFormUpdate is in CreateNew
inherited AfterConstruction; inherited AfterConstruction;
if Scaled and (Screen.PixelsPerInch<>PixelsPerInch) then if Scaled and (Monitor.PixelsPerInch<>PixelsPerInch) then
AutoAdjustLayout(lapAutoAdjustForDPI, PixelsPerInch, Screen.PixelsPerInch, AutoAdjustLayout(lapAutoAdjustForDPI, PixelsPerInch, Monitor.PixelsPerInch,
Width, MulDiv(Width, Screen.PixelsPerInch, PixelsPerInch), False); Width, MulDiv(Width, Monitor.PixelsPerInch, PixelsPerInch), False);
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------