Use implicit conversion from wxColour to wxBrush

This commit is contained in:
Stefan Csomor
2017-06-28 07:12:57 +02:00
parent cd3b1f25ad
commit 46742a6043
2 changed files with 2 additions and 2 deletions

View File

@@ -1788,7 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc)
return;
}
gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID));
gdc.SetBackground(GetBackgroundColour());
gdc.SetGraphicsContext(context);
}

View File

@@ -81,7 +81,7 @@ wxWindowDCImpl::wxWindowDCImpl( wxDC *owner, wxWindow *window )
}
DoSetClippingRegion( 0 , 0 , m_width , m_height ) ;
SetBackground(wxBrush(window->GetBackgroundColour(),wxBRUSHSTYLE_SOLID));
SetBackground(window->GetBackgroundColour());
SetFont( window->GetFont() ) ;
}