mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +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:
@@ -260,7 +260,7 @@ bool ScreenshotCommand::Capture(
|
||||
wxBitmap back(width + b.width, height + b.height);
|
||||
fullDC.SelectObject(back);
|
||||
|
||||
fullDC.SetBackground(wxBrush(mBackColor, wxSOLID));
|
||||
fullDC.SetBackground(wxBrush(mBackColor, wxBRUSHSTYLE_SOLID));
|
||||
fullDC.Clear();
|
||||
|
||||
fullDC.DrawBitmap(part, b.x, b.y);
|
||||
|
Reference in New Issue
Block a user