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:
parent
cc92fd8452
commit
75d6ba569d
@ -231,6 +231,10 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
|
|||||||
const wxRect& rect,
|
const wxRect& rect,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
|
// store settings
|
||||||
|
wxPen pen(dc.GetPen());
|
||||||
|
wxBrush brush(dc.GetBrush());
|
||||||
|
|
||||||
// white background
|
// white background
|
||||||
dc.SetPen(*wxGREY_PEN);
|
dc.SetPen(*wxGREY_PEN);
|
||||||
dc.SetBrush(*wxWHITE_BRUSH);
|
dc.SetBrush(*wxWHITE_BRUSH);
|
||||||
@ -253,6 +257,9 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
|
|||||||
dc.DrawLine(xMiddle, yMiddle - halfHeight,
|
dc.DrawLine(xMiddle, yMiddle - halfHeight,
|
||||||
xMiddle, yMiddle + halfHeight + 1);
|
xMiddle, yMiddle + halfHeight + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dc.SetPen(pen);
|
||||||
|
dc.SetBrush(brush);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user