don't pass unnecessary arguments to FindOrCreateBrush/Pen()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-03-22 00:04:29 +00:00
parent 5d2d8f6ae3
commit 9c97f8ea88

View File

@ -1011,20 +1011,20 @@ void wxTabView::OnTabActivate(int /*activateId*/, int /*deactivateId*/)
void wxTabView::SetHighlightColour(const wxColour& col)
{
m_highlightColour = col;
m_highlightPen = wxThePenList->FindOrCreatePen(col, 1, wxSOLID);
m_highlightPen = wxThePenList->FindOrCreatePen(col);
}
void wxTabView::SetShadowColour(const wxColour& col)
{
m_shadowColour = col;
m_shadowPen = wxThePenList->FindOrCreatePen(col, 1, wxSOLID);
m_shadowPen = wxThePenList->FindOrCreatePen(col);
}
void wxTabView::SetBackgroundColour(const wxColour& col)
{
m_backgroundColour = col;
m_backgroundPen = wxThePenList->FindOrCreatePen(col, 1, wxSOLID);
m_backgroundBrush = wxTheBrushList->FindOrCreateBrush(col, wxSOLID);
m_backgroundPen = wxThePenList->FindOrCreatePen(col);
m_backgroundBrush = wxTheBrushList->FindOrCreateBrush(col);
}
// this may be called with sel = zero (which doesn't match any page)