From fb63a24232a48e4b634124c7eaa968974c3c24a1 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 28 Sep 2006 07:53:10 +0000 Subject: [PATCH] adopting correct implementation virtualization for Do/GradientFillConcentric git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dc.h | 8 +++++++- src/common/dcbase.cpp | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/wx/dc.h b/include/wx/dc.h index 98e922fff7..4ddb6a0e5a 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -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; diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index ef8918bbb5..994dfcee37 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -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)