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:
On Mac Cocoa(64bit) and Linux 64bit,
TCanvas.Polygon ignores Brush.Color when non-default Brush.Style assigned.
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:
On Mac Carbon(32bit), Windows(both 32bit and 64bit) and Linux 32bit, this goes correctly.
Mantis conversion info:
- Mantis ID: 34414
- OS: Mac OS
- OS Build: 10.13
- Platform: Cocoa
- Version: 1.8.4
- Fixed in revision: 61047 (#8e3bac19)