Fix generic implementation of wxDC::GradientFillConcentric().
The selected colour was not used as the code simply changed the value of m_pen but didn't call SetPen() to actually use it. This resulted in always using the default (black) colour when drawing concentric gradients. Fix this by calling SetPen(). See #12337. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3a61f5db2c
commit
7825e32171
@ -1108,7 +1108,7 @@ void wxDCImpl::DoGradientFillConcentric(const wxRect& rect,
|
||||
nB = (wxUint8)(nB1 + ((nB2 - nB1) * nGradient / 100));
|
||||
|
||||
//set the pixel
|
||||
m_pen = wxColour(nR,nG,nB);
|
||||
SetPen(wxColour(nR,nG,nB));
|
||||
DoDrawPoint(x + rect.GetLeft(), y + rect.GetTop());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user