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);
}