Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,112
    • Issues 2,112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #36709
Closed
Open
Issue created Feb 18, 2020 by FPC Admin account@fpc_adminOwner

GTK2: TCanvas.Polygon ignores Brush.Color on non-default Brush.Style.

Original Reporter info from Mantis: shiraishi
  • Reporter name:

Description:

GTK2:
On for Lazarus 2.1.0(SVN) , 2.0.6, and 1.8.4,
TCanvas.Polygon ignores Brush.Color when non-default Brush.Style assigned,
On Lazarus 1.6.4, drawn rightly.

Steps to reproduce:

unit Unit1;

{$mode objfpc}{$H+}

interface
                       

uses
  Classes, SysUtils, Forms, Controls, Graphics, ExtCtrls, Buttons;

type

  { TForm1 }

  TForm1 = class(TForm)
    Image1: TImage;
    procedure FormCreate(Sender: TObject);
  private

  public

  end;

var
  Form1: TForm1;

implementation

{$R *.lfm}
{ TForm1 }
const
  p1:TPoint=(x:1;y:1);
  p2:TPoint=(x:199;y:1);
  p3:TPoint=(x:100;y:160);

procedure TForm1.FormCreate(Sender: TObject);
begin
   with image1.canvas do
  begin
     Pen.Color := clWhite;
     Rectangle(0, 0, Image1.Width, Image1.Height);

     Pen.Color:=clred ;
     Brush.Style:=TBrushStyle(4);
     Brush.Color:=clred ;
     Polygon([p1,p2,p3]) ;
  end;
end;

end.

Additional information:

probably not depend on 32 bit or 64 bit.
Same issue in 0034414

Mantis conversion info:

  • Mantis ID: 36709
  • OS: Linux
  • Build: r62628
  • Platform: GTK2
  • Version: 2.1 (SVN)
  • Fixed in revision: r62743 (#c56c25c7)
Assignee
Assign to
Time tracking