mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +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:
@@ -1312,7 +1312,7 @@ auStaticText::auStaticText(wxWindow* parent, wxString textIn) :
|
||||
#ifdef __WXMSW__
|
||||
fontSize = 9;
|
||||
#endif
|
||||
wxFont font(fontSize, wxDEFAULT, wxNORMAL, wxNORMAL);
|
||||
wxFont font(fontSize, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
||||
GetTextExtent(textIn, &textWidth, &textHeight, NULL, NULL, &font);
|
||||
|
||||
SetFont( font );
|
||||
|
||||
Reference in New Issue
Block a user