fixed compilation with fpc 2.6.3

git-svn-id: trunk@40410 -
This commit is contained in:
mattias 2013-02-25 22:17:54 +00:00
parent e79302ec8c
commit 48ec025ae8
5 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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