X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72c1ba98f2c5e666516a2e44048c7ca0b3926ff4..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/statbrma.cpp diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 9bca84cca9..926198c3b0 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -59,7 +59,7 @@ bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id, return false; if ( parent->MacGetTopLevelWindow()->MacGetMetalAppearance() ) - MacSetBackgroundBrush( wxNullBrush ); + SetBackgroundStyle( wxBG_STYLE_TRANSPARENT ); // normal system font is too tall for fitting into the standard height SetWindowVariant( wxWINDOW_VARIANT_SMALL ); @@ -79,8 +79,7 @@ void wxStatusBarMac::DrawFieldText(wxDC& dc, int i) wxString text(GetStatusText( i )); - long x, y; - + wxCoord x, y; dc.GetTextExtent(text, &x, &y); int leftMargin = 2;