GTK2: TCanvas.Polygon ignores Brush.Color on non-default Brush.Style.
Original Reporter info from Mantis: shiraishi
-
Reporter name:
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)