mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 00:08:11 +02:00
lcl: forms: don't change Font PPI if Application.Scaled=False. Issue #32260
git-svn-id: trunk@55659 -
This commit is contained in:
parent
b7b0767583
commit
9932d66e51
@ -18,7 +18,8 @@ begin
|
||||
FScaled := True;
|
||||
FDesignTimePPI := 96;
|
||||
FPixelsPerInch := FDesignTimePPI;
|
||||
Font.PixelsPerInch := FDesignTimePPI;
|
||||
if Application.Scaled then
|
||||
Font.PixelsPerInch := FDesignTimePPI;
|
||||
end;
|
||||
|
||||
procedure TCustomDesignControl.AutoAdjustLayout(AMode: TLayoutAdjustmentPolicy;
|
||||
@ -103,5 +104,10 @@ end;
|
||||
|
||||
procedure TCustomDesignControl.SetScaled(const AScaled: Boolean);
|
||||
begin
|
||||
if FScaled=AScaled then
|
||||
Exit;
|
||||
|
||||
FScaled := AScaled;
|
||||
if not FScaled then
|
||||
Font.PixelsPerInch := Screen.PixelsPerInch;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user