mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 08:38:19 +02:00
IDE: Fix TForm.DesignTimePPI changing when form is loaded with different PPI and "Force DPI scaling in design time" is off. Issue #37227, patch by Emil Totev.
git-svn-id: trunk@63482 -
This commit is contained in:
parent
70293d07b0
commit
bfeb99af9e
@ -6156,8 +6156,8 @@ begin
|
||||
begin
|
||||
DsgControl.AutoAdjustLayout(lapAutoAdjustForDPI, DsgControl.DesignTimePPI, Screen.PixelsPerInch, 0, 0);
|
||||
DesignerProcs.ScaleNonVisual(DsgControl, DsgControl.DesignTimePPI, Screen.PixelsPerInch);
|
||||
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
|
||||
end;
|
||||
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
|
||||
DsgControl.PixelsPerInch := Screen.PixelsPerInch;
|
||||
end;
|
||||
{$IF (FPC_FULLVERSION >= 30003)} // TDataModule.DesignPPI was added in FPC 3.0.3
|
||||
|
Loading…
Reference in New Issue
Block a user