lcl: forms: don't change Font PPI if Application.Scaled=False. Issue #32260

git-svn-id: trunk@55659 -
This commit is contained in:
ondrej 2017-08-14 10:15:43 +00:00
parent b7b0767583
commit 9932d66e51

View File

@ -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;