X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f23d32554f63120915609ade933fd6ff11be53ad..dcae64c221450a7ca9b530ecf44757543c33a754:/src/mac/carbon/dc.cpp diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 8b0d162f33..b3e3ef106a 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -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()) {