]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dc.cpp
cleanup - reformatting
[wxWidgets.git] / src / mac / carbon / dc.cpp
index 8b0d162f3377eb9232b87735541bd546a0d716bd..b3e3ef106a781582d8546590d4f8e15f472e80ff 100644 (file)
@@ -2155,7 +2155,21 @@ void wxDC::MacInstallBrush() const
     int brushStyle = m_brush.GetStyle();
     if (brushStyle == wxSOLID)
     {
-        ::PenPat(GetQDGlobalsBlack(&blackColor));
+        switch ( m_brush.MacGetBrushKind() )
+        {
+            case kwxMacBrushTheme :
+                {
+                    Pattern whiteColor ;
+                    ::BackPat(GetQDGlobalsWhite(&whiteColor));
+                    ::SetThemePen( m_brush.MacGetTheme() , wxDisplayDepth() , true ) ;
+                }   
+            break ;
+        
+            default :
+                ::PenPat(GetQDGlobalsBlack(&blackColor));
+                break ;
+                
+        }
     }
     else if (m_brush.IsHatch())
     {