1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Fix deprecation warnings with wxFont, wxPen, wxBrush ctors...

... Replace some enum constants with the equivalent values from the more
special-purpose enums, as the wx header files recommend, so overloading
selects the ctors with non-int arguments.

In a full rebuild of the debug project on Mac, this reduces the count of
warnings from 264 to 274.
This commit is contained in:
Paul Licameli
2018-07-23 13:21:15 -04:00
parent 0ea56874a6
commit e432883dec
14 changed files with 53 additions and 53 deletions

View File

@@ -1072,7 +1072,7 @@ void ExportMixerPanel::OnPaint(wxPaintEvent & WXUNUSED(event))
}
wxColour bkgnd = GetBackgroundColour();
wxBrush bkgndBrush( bkgnd, wxSOLID );
wxBrush bkgndBrush( bkgnd, wxBRUSHSTYLE_SOLID );
wxMemoryDC memDC;
memDC.SelectObject( *mBitmap );