TAChart: Set Brush.Color before Brush.Style to work around issue #21806

git-svn-id: trunk@36913 -
This commit is contained in:
ask 2012-04-20 01:07:20 +00:00
parent 1060d6f033
commit 50f4ffe8f5
6 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);