Ignore:
Timestamp:
Apr 25, 2022, 6:22:53 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Update Common package to version 0.10.
  • Modified: fgl unit replaced by Generics.Collections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UMetaCanvas.pas

    r423 r424  
    44
    55uses
    6   Classes, SysUtils, Graphics, Types, fgl;
     6  Classes, SysUtils, Graphics, Types, Generics.Collections;
    77
    88type
     
    1717  end;
    1818
    19   TCanvasObjects = class(TFPGObjectList<TCanvasObject>)
     19  TCanvasObjects = class(TObjectList<TCanvasObject>)
    2020  end;
    2121
     
    140140    procedure RoundRect(const Rect: TRect; RX,RY: Integer); overload;
    141141    procedure TextOut(X,Y: Integer; const Text: String); override;
    142     procedure Polygon(Points: PPoint; NumPts: Integer; Winding: boolean = False); override;
     142    procedure Polygon(Points: PPoint; NumPts: Integer; Winding: Boolean = False); override;
    143143    procedure Ellipse(x1, y1, x2, y2: Integer); override;
    144144    procedure StretchDraw(const DestRect: TRect; SrcGraphic: TGraphic); override;
     
    500500end;
    501501
    502 procedure TMetaCanvas.Polygon(Points: PPoint; NumPts: Integer; Winding: boolean
     502procedure TMetaCanvas.Polygon(Points: PPoint; NumPts: Integer; Winding: Boolean
    503503  );
    504504var
     
    506506  I: Integer;
    507507begin
     508  APoints := nil;
    508509  SetLength(APoints, NumPts);
    509510  for I := 0 to High(APoints) do
Note: See TracChangeset for help on using the changeset viewer.