Use new parameter names in the existing CreateRadialGradientBrush methods too

This commit is contained in:
Robin Dunn
2019-08-27 18:02:19 -07:00
committed by Robin Dunn
parent c79085b54d
commit f7896d4dff
8 changed files with 72 additions and 72 deletions

View File

@@ -490,8 +490,8 @@ public:
wxDouble x2, wxDouble y2,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix);
void CreateRadialGradientShading(wxDouble xo, wxDouble yo,
wxDouble xc, wxDouble yc, wxDouble radius,
void CreateRadialGradientShading(wxDouble startX, wxDouble startY,
wxDouble endX, wxDouble endY, wxDouble radius,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix);
@@ -597,16 +597,16 @@ wxMacCoreGraphicsPenBrushDataBase::CreateLinearGradientShading(
void
wxMacCoreGraphicsPenBrushDataBase::CreateRadialGradientShading(
wxDouble xo, wxDouble yo,
wxDouble xc, wxDouble yc,
wxDouble startX, wxDouble startY,
wxDouble endX, wxDouble endY,
wxDouble radius,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix)
{
m_gradientFunction = CreateGradientFunction(stops);
m_shading = CGShadingCreateRadial( wxMacGetGenericRGBColorSpace(),
CGPointMake((CGFloat) xo, (CGFloat) yo), 0,
CGPointMake((CGFloat) xc, (CGFloat) yc), (CGFloat) radius,
CGPointMake((CGFloat) startX, (CGFloat) startY), 0,
CGPointMake((CGFloat) endX, (CGFloat) endY), (CGFloat) radius,
m_gradientFunction, true, true );
m_isShading = true;
if (! matrix.IsNull() )
@@ -2766,8 +2766,8 @@ public :
const wxGraphicsMatrix& matrix) wxOVERRIDE;
virtual wxGraphicsBrush
CreateRadialGradientBrush(wxDouble xo, wxDouble yo,
wxDouble xc, wxDouble yc,
CreateRadialGradientBrush(wxDouble startX, wxDouble startY,
wxDouble endX, wxDouble endY,
wxDouble radius,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix) wxOVERRIDE;
@@ -3032,15 +3032,15 @@ wxMacCoreGraphicsRenderer::CreateLinearGradientBrush(wxDouble x1, wxDouble y1,
}
wxGraphicsBrush
wxMacCoreGraphicsRenderer::CreateRadialGradientBrush(wxDouble xo, wxDouble yo,
wxDouble xc, wxDouble yc,
wxMacCoreGraphicsRenderer::CreateRadialGradientBrush(wxDouble startX, wxDouble startY,
wxDouble endX, wxDouble endY,
wxDouble radius,
const wxGraphicsGradientStops& stops,
const wxGraphicsMatrix& matrix)
{
wxGraphicsBrush p;
wxMacCoreGraphicsBrushData* d = new wxMacCoreGraphicsBrushData( this );
d->CreateRadialGradientShading(xo, yo, xc, yc, radius, stops, matrix);
d->CreateRadialGradientShading(startX, startY, endX, endY, radius, stops, matrix);
p.SetRefData(d);
return p;
}