really fixed '-' and '+' drawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -218,13 +218,15 @@ wxRendererGeneric::DrawTreeItemButton(wxWindow * WXUNUSED(win),
|
|||||||
// half of the length of the horz lines in "-" and "+"
|
// half of the length of the horz lines in "-" and "+"
|
||||||
const wxCoord halfWidth = rect.width/2 - 2;
|
const wxCoord halfWidth = rect.width/2 - 2;
|
||||||
dc.SetPen(*wxBLACK_PEN);
|
dc.SetPen(*wxBLACK_PEN);
|
||||||
dc.DrawLine(xMiddle - halfWidth, yMiddle, xMiddle + halfWidth, yMiddle);
|
dc.DrawLine(xMiddle - halfWidth, yMiddle,
|
||||||
|
xMiddle + halfWidth + 1, yMiddle);
|
||||||
|
|
||||||
if ( !(flags & wxCONTROL_EXPANDED) )
|
if ( !(flags & wxCONTROL_EXPANDED) )
|
||||||
{
|
{
|
||||||
// turn "-" into "+"
|
// turn "-" into "+"
|
||||||
const wxCoord halfHeight = rect.height/2 - 2;
|
const wxCoord halfHeight = rect.height/2 - 2;
|
||||||
dc.DrawLine(xMiddle, yMiddle - halfHeight,
|
dc.DrawLine(xMiddle, yMiddle - halfHeight,
|
||||||
xMiddle, yMiddle + halfHeight);
|
xMiddle, yMiddle + halfHeight + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user