You've already forked lazarus-ccr
industrial: Fix compilation with Laz versions before 3.0
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9028 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -18,7 +18,7 @@ unit Switches;
|
||||
interface
|
||||
|
||||
uses
|
||||
LCLIntf, LCLType, LMessages,
|
||||
LCLIntf, LCLType, LMessages, LCLVersion,
|
||||
Graphics, GraphType, Classes, SysUtils, Types, Controls, ExtCtrls, ImgList;
|
||||
|
||||
type
|
||||
@ -244,6 +244,17 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
{$IF LCL_FullVersion < 3000000}
|
||||
function RotatePoint(const APoint: TPoint; AAngle: Double): TPoint;
|
||||
var
|
||||
sa, ca: Double;
|
||||
begin
|
||||
SinCos(AAngle, sa, ca);
|
||||
Result.X := Round( ca * APoint.X + sa * APoint.Y);
|
||||
Result.Y := Round(-sa * APoint.X + ca * APoint.Y);
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
procedure RotateImage(Img: TFPCustomImage; Angle: Double);
|
||||
var
|
||||
Buffer: TFPCustomImage;
|
||||
|
Reference in New Issue
Block a user