Simplify SetFont() in wxOSX implementations

It doesn't need to take the colour and other parameters unused any more.

Closes https://github.com/wxWidgets/wxWidgets/pull/2103
This commit is contained in:
Stefan Csomor
2020-10-25 17:49:37 +01:00
committed by Vadim Zeitlin
parent 859193fb65
commit 4aafab47e7
13 changed files with 17 additions and 14 deletions

View File

@@ -507,7 +507,7 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
void wxWindowMac::MacUpdateControlFont()
{
if ( GetPeer() )
GetPeer()->SetFont( GetFont() , GetForegroundColour() , GetWindowStyle() ) ;
GetPeer()->SetFont(GetFont()) ;
// do not trigger refreshes upon invisible and possible partly created objects
if ( IsShownOnScreen() )