restore brush properly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -698,6 +698,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
{
|
{
|
||||||
// save old pen
|
// save old pen
|
||||||
wxPen oldPen = m_pen;
|
wxPen oldPen = m_pen;
|
||||||
|
wxBrush oldBrush = m_brush;
|
||||||
|
|
||||||
wxUint8 nR1 = initialColour.Red();
|
wxUint8 nR1 = initialColour.Red();
|
||||||
wxUint8 nG1 = initialColour.Green();
|
wxUint8 nG1 = initialColour.Green();
|
||||||
@@ -783,6 +784,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetPen(oldPen);
|
SetPen(oldPen);
|
||||||
|
SetBrush(oldBrush);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxDCBase::DoGradientFillConcentric(const wxRect& rect,
|
void wxDCBase::DoGradientFillConcentric(const wxRect& rect,
|
||||||
|
Reference in New Issue
Block a user