X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e9860d9fa86d3cf354b0b05739da379d3e9ae1..81e2cbc6851553da7a733bbdeb3ab59f4081902c:/src/mac/carbon/brush.cpp diff --git a/src/mac/carbon/brush.cpp b/src/mac/carbon/brush.cpp index 8716a58535..72413a992f 100644 --- a/src/mac/carbon/brush.cpp +++ b/src/mac/carbon/brush.cpp @@ -20,9 +20,7 @@ #include "wx/mac/private.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject) -#endif class WXDLLEXPORT wxBrushRefData: public wxGDIRefData { @@ -171,7 +169,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(); }