mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:10:16 +02:00
lcl: forms: use Monitor.PixelsPerInch for default scaling
git-svn-id: trunk@53689 -
This commit is contained in:
parent
f315aaac55
commit
172aa765ac
@ -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;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user