Drawing fix for generic wxTreeCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-05-22 12:20:22 +00:00
parent cc92fd8452
commit 75d6ba569d

View File

@ -231,6 +231,10 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
const wxRect& rect,
int flags)
{
// store settings
wxPen pen(dc.GetPen());
wxBrush brush(dc.GetBrush());
// white background
dc.SetPen(*wxGREY_PEN);
dc.SetBrush(*wxWHITE_BRUSH);
@ -253,6 +257,9 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
dc.DrawLine(xMiddle, yMiddle - halfHeight,
xMiddle, yMiddle + halfHeight + 1);
}
dc.SetPen(pen);
dc.SetBrush(brush);
}
// ----------------------------------------------------------------------------