adopting correct implementation virtualization for Do/GradientFillConcentric

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-09-28 07:53:10 +00:00
parent 562f54a7ba
commit fb63a24232
2 changed files with 8 additions and 2 deletions

View File

@ -168,7 +168,8 @@ public:
void GradientFillConcentric(const wxRect& rect,
const wxColour& initialColour,
const wxColour& destColour,
const wxPoint& circleCenter);
const wxPoint& circleCenter)
{ DoGradientFillConcentric(rect, initialColour, destColour, circleCenter); }
// fill the area specified by rect with a linear gradient
void GradientFillLinear(const wxRect& rect,
@ -658,6 +659,11 @@ protected:
const wxColour& destColour,
wxDirection nDirection = wxEAST);
virtual void DoGradientFillConcentric(const wxRect& rect,
const wxColour& initialColour,
const wxColour& destColour,
const wxPoint& circleCenter);
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const = 0;
virtual void DoDrawPoint(wxCoord x, wxCoord y) = 0;

View File

@ -776,7 +776,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
SetPen(oldPen);
}
void wxDCBase::GradientFillConcentric(const wxRect& rect,
void wxDCBase::DoGradientFillConcentric(const wxRect& rect,
const wxColour& initialColour,
const wxColour& destColour,
const wxPoint& circleCenter)