mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 09:10:20 +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
|
||||
inherited AfterConstruction;
|
||||
|
||||
if Scaled and (Screen.PixelsPerInch<>PixelsPerInch) then
|
||||
AutoAdjustLayout(lapAutoAdjustForDPI, PixelsPerInch, Screen.PixelsPerInch,
|
||||
Width, MulDiv(Width, Screen.PixelsPerInch, PixelsPerInch), False);
|
||||
if Scaled and (Monitor.PixelsPerInch<>PixelsPerInch) then
|
||||
AutoAdjustLayout(lapAutoAdjustForDPI, PixelsPerInch, Monitor.PixelsPerInch,
|
||||
Width, MulDiv(Width, Monitor.PixelsPerInch, PixelsPerInch), False);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user