mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 05:29:26 +02:00
TAChart: Set Brush.Color before Brush.Style to work around issue #21806
git-svn-id: trunk@36913 -
This commit is contained in:
parent
1060d6f033
commit
50f4ffe8f5
@ -200,8 +200,8 @@ end;
|
||||
procedure TAggPasDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
FCanvas.Brush.Color := AColor;
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
end;
|
||||
|
||||
procedure TAggPasDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
@ -205,8 +205,8 @@ end;
|
||||
procedure TBGRABitmapDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
Canvas.Brush.Color := AColor;
|
||||
Canvas.Brush.Style := AStyle;
|
||||
Canvas.Brush.Color := AColor;
|
||||
end;
|
||||
|
||||
procedure TBGRABitmapDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
@ -242,8 +242,8 @@ end;
|
||||
procedure TCanvasDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
FCanvas.Brush.Color := AColor;
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
end;
|
||||
|
||||
procedure TCanvasDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
@ -241,8 +241,8 @@ end;
|
||||
procedure TFPCanvasDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
FCanvas.Brush.FPColor := FChartColorToFPColorFunc(AColor);
|
||||
FCanvas.Brush.Style := AStyle;
|
||||
end;
|
||||
|
||||
procedure TFPCanvasDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
@ -252,8 +252,8 @@ end;
|
||||
procedure TFPVectorialDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
FBrushStyle := AStyle;
|
||||
SetBrushColor(AColor);
|
||||
FBrushStyle := AStyle;
|
||||
end;
|
||||
|
||||
procedure TFPVectorialDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
@ -266,8 +266,8 @@ end;
|
||||
procedure TOpenGLDrawer.SetBrushParams(
|
||||
AStyle: TFPBrushStyle; AColor: TChartColor);
|
||||
begin
|
||||
Unused(AStyle);
|
||||
SetBrushColor(AColor);
|
||||
Unused(AStyle);
|
||||
end;
|
||||
|
||||
procedure TOpenGLDrawer.SetFont(AFont: TFPCustomFont);
|
||||
|
Loading…
Reference in New Issue
Block a user