Use implicit conversion from wxColour to wxBrush
This commit is contained in:
@@ -1788,7 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc)
|
||||
return;
|
||||
}
|
||||
|
||||
gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID));
|
||||
gdc.SetBackground(GetBackgroundColour());
|
||||
gdc.SetGraphicsContext(context);
|
||||
}
|
||||
|
||||
|
@@ -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() ) ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user