Skip to content

Commit 8b67a87

Browse files
committed
ScaleForCurrentDPI only in Delphi 10.1 Berlin
1 parent 6bc592c commit 8b67a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Vcl.DamDialog.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function RunDamDialog(DamMsg: TDamMsg; const aText: string): TDamMsgRes;
166166
F.BuildButtons;
167167

168168
F.SetIcon;
169-
{$IFDEF USE_DPICHANGE}
169+
{$IF Defined(VCL) and Defined(DCC) and (CompilerVersion >= 31)} //Delphi 10.1 Berlin
170170
F.ScaleForCurrentDPI;
171171
{$ENDIF}
172172
F.CalcFormBounds;

0 commit comments

Comments
 (0)