mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 22:19:19 +02:00
fixed compilation with fpc 2.6.3
git-svn-id: trunk@40410 -
This commit is contained in:
parent
e79302ec8c
commit
48ec025ae8
@ -382,10 +382,10 @@ type
|
||||
property Bold; // only windows
|
||||
property Italic; // only windows
|
||||
property Underline; // not supported
|
||||
{$IF (FPC_FULLVERSION=20601) or (FPC_FULLVERSION>=20701)} //changed in 2.6.1 and 2.7; remove when FPC 2.6.2+ only is supported
|
||||
property StrikeThrough;
|
||||
{$ELSE}
|
||||
{$IF (FPC_FULLVERSION<=20600) or (FPC_FULLVERSION=20602)}
|
||||
property StrikeTrough; //old version with typo
|
||||
{$ELSE}
|
||||
property StrikeThrough;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
|
@ -1213,10 +1213,10 @@ begin
|
||||
ADest.Font.Bold := Font.Bold;
|
||||
ADest.Font.Italic := Font.Italic;
|
||||
ADest.Font.Underline := Font.Underline;
|
||||
{$IF (FPC_FULLVERSION=20601) or (FPC_FULLVERSION>=20701)} //changed in 2.6.1 and 2.7; remove when FPC 2.6.2+ only is supported
|
||||
ADest.Font.StrikeThrough := Font.StrikeThrough;
|
||||
{$ELSE}
|
||||
{$IF (FPC_FULLVERSION<=20600) or (FPC_FULLVERSION=20602)}
|
||||
ADest.Font.StrikeTrough := Font.StrikeThrough; //old version with typo
|
||||
{$ELSE}
|
||||
ADest.Font.StrikeThrough := Font.StrikeThrough;
|
||||
{$ENDIF}
|
||||
|
||||
{$ifdef USE_LCL_CANVAS}
|
||||
|
@ -35,11 +35,11 @@ interface
|
||||
{$DEFINE HasFPCanvas1}
|
||||
{$ENDIF}
|
||||
|
||||
{$IF FPC_FULLVERSION>=20701}
|
||||
{$IF FPC_FULLVERSION>=20603}
|
||||
{$DEFINE HasFPEndCap}
|
||||
{$ENDIF}
|
||||
|
||||
{$IF FPC_FULLVERSION>=20701}
|
||||
{$IF FPC_FULLVERSION>=20603}
|
||||
{$DEFINE HasFPJoinStyle}
|
||||
{$ENDIF}
|
||||
|
||||
|
@ -4090,10 +4090,10 @@ begin
|
||||
TM.tmBreakChar := '?';
|
||||
TM.tmItalic := Ord(lFont.Italic);
|
||||
TM.tmUnderlined := Ord(lFont.Underline);
|
||||
{$IF (FPC_FULLVERSION=20601) or (FPC_FULLVERSION>=20701)} //changed in 2.6.1 and 2.7; remove when FPC 2.6.2+ only is supported
|
||||
TM.tmStruckOut := Ord(lFont.StrikeThrough);
|
||||
{$ELSE}
|
||||
{$IF (FPC_FULLVERSION<=20600) or (FPC_FULLVERSION=20602)}
|
||||
TM.tmStruckOut := Ord(lFont.StrikeTrough); //old version with typo
|
||||
{$ELSE}
|
||||
TM.tmStruckOut := Ord(lFont.StrikeThrough);
|
||||
{$ENDIF}
|
||||
|
||||
{ Defaults to a TrueType font.
|
||||
|
@ -761,10 +761,10 @@ begin
|
||||
Font.Bold := AFont.Bold;
|
||||
Font.Italic := AFont.Italic;
|
||||
Font.Underline := AFont.Underline;
|
||||
{$IF (FPC_FULLVERSION=20601) or (FPC_FULLVERSION>=20701)} //changed in 2.6.1 and 2.7; remove when FPC 2.6.2+ only is supported
|
||||
Font.StrikeThrough := AFont.StrikeThrough;
|
||||
{$ELSE}
|
||||
{$IF (FPC_FULLVERSION<=20600) or (FPC_FULLVERSION=20602)}
|
||||
Font.StrikeTrough := AFont.StrikeTrough; //old version with typo
|
||||
{$ELSE}
|
||||
Font.StrikeThrough := AFont.StrikeThrough;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user