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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user