]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbase.cpp
sockets work with wxDFB now
[wxWidgets.git] / src / common / dcbase.cpp
index 1475923953e7e33d1cd7aa74fc276bdb5d394b75..9f875dd04d6c19e866c1bd6438009576a7e9f053 100644 (file)
@@ -698,6 +698,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
 {
     // save old pen
     wxPen oldPen = m_pen;
+    wxBrush oldBrush = m_brush;
 
     wxUint8 nR1 = initialColour.Red();
     wxUint8 nG1 = initialColour.Green();
@@ -783,6 +784,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
     }
 
     SetPen(oldPen);
+    SetBrush(oldBrush);
 }
 
 void wxDCBase::DoGradientFillConcentric(const wxRect& rect,