You've already forked lazarus-ccr
callite: Fix compilation with some old FPC versions (https://forum.lazarus.freepascal.org/index.php?topic=56258.msg418018).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8086 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -504,6 +504,12 @@ const
|
||||
DESIGNTIME_PPI = 96;
|
||||
|
||||
|
||||
function SameRect(const R1, R2: TRect): Boolean;
|
||||
begin
|
||||
Result := (R1.Left = R2.Left) and (R1.Top = R2.Top) and
|
||||
(R1.Right = R2.Right) and (R1.Bottom = R2.Bottom);
|
||||
end;
|
||||
|
||||
{ Holiday helpers }
|
||||
|
||||
{ Clears the per month holiday buffer }
|
||||
@ -1395,7 +1401,7 @@ end;
|
||||
|
||||
procedure TCalDrawer.SetBoundsRect(ARect: TRect);
|
||||
begin
|
||||
if FBoundsRect = ARect then exit;
|
||||
if SameRect(FBoundsRect, ARect) then exit;
|
||||
FBoundsRect := ARect;
|
||||
FBuffer.SetSize(FBoundsRect.Width, FBoundsRect.Height);
|
||||
Draw;
|
||||
|
Reference in New Issue
Block a user