]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/brush.cpp
Applied DnD patch, adding a field for setting a default action.
[wxWidgets.git] / src / mac / carbon / brush.cpp
index 8716a58535dddac547765d5c5a092234dc171384..789be90f00b9ccc91e04daf49f01c63acd8ba3c1 100644 (file)
@@ -171,7 +171,10 @@ void wxBrush::MacSetTheme(ThemeBrush macThemeBrush)
 
     M_BRUSHDATA->m_macBrushKind = kwxMacBrushTheme;
     M_BRUSHDATA->m_macThemeBrush = macThemeBrush;
-
+    RGBColor color ;
+    GetThemeBrushAsColor( macThemeBrush , 32, true, &color );
+    M_BRUSHDATA->m_colour.Set( color.red >> 8 , color.green >> 8 , color.blue >> 8 ) ;
+    
     RealizeResource();
 }