Simplify drawing plain background in AUI toolbars

Don't bother adjusting the rectangle, just set the pen correctly to
avoid drawing its borders.

Closes #17616.
This commit is contained in:
Vadim Zeitlin
2019-10-26 16:54:16 +02:00
parent 198a4e97a0
commit e303231d00

View File

@@ -228,15 +228,12 @@ void wxAuiGenericToolBarArt::DrawBackground(
void wxAuiGenericToolBarArt::DrawPlainBackground(wxDC& dc,
wxWindow* WXUNUSED(wnd),
const wxRect& _rect)
const wxRect& rect)
{
wxRect rect = _rect;
rect.height++;
dc.SetBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
dc.SetPen(*wxTRANSPARENT_PEN);
dc.DrawRectangle(rect.GetX() - 1, rect.GetY() - 1,
rect.GetWidth() + 2, rect.GetHeight() + 1);
dc.DrawRectangle(rect);
}
void wxAuiGenericToolBarArt::DrawLabel(