Avoid deprecated wxPen/wxBrush/wxFont API in wxX11 code.

Also simplify the code by relying on implicit constructors of wxPen and
wxBrush from wxColour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:45:10 +00:00
parent db2ecf57cc
commit 01c1dde264
5 changed files with 13 additions and 19 deletions

View File

@@ -71,8 +71,7 @@ wxStdRenderer::wxStdRenderer(const wxColourScheme *scheme)
void
wxStdRenderer::DrawSolidRect(wxDC& dc, const wxColour& col, const wxRect& rect)
{
wxBrush brush(col, wxSOLID);
dc.SetBrush(brush);
dc.SetBrush(col);
dc.SetPen(*wxTRANSPARENT_PEN);
dc.DrawRectangle(rect);
}