summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fc8a2ec)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74930
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
- dc.DrawLine(rect.x, rect.y, rect.x, rect.y + rect.height);
+ // Note that the last point is not drawn.
+ dc.DrawLine(rect.x, rect.y, rect.x, rect.y + rect.height);
}
else if (borderLeft > 1)
{
}
else if (borderLeft > 1)
{
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
- dc.DrawLine(rect.x + rect.width, rect.y, rect.x + rect.width, rect.y + rect.height + 1);
-
+ // Note that the last point is not drawn.
+ dc.DrawLine(rect.x + rect.width - 1, rect.y, rect.x + rect.width - 1, rect.y + rect.height);
}
else if (borderRight > 1)
{
}
else if (borderRight > 1)
{
wxBrush brush(col);
dc.SetPen(pen);
dc.SetBrush(brush);
wxBrush brush(col);
dc.SetPen(pen);
dc.SetBrush(brush);
- dc.DrawRectangle(rect.x + rect.width - borderRight, rect.y, borderRight, rect.height + 1);
+ dc.DrawRectangle(rect.x + rect.width - borderRight, rect.y, borderRight, rect.height);
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
penStyle = wxLONG_DASH;
wxPen pen(col, 1, penStyle);
dc.SetPen(pen);
- dc.DrawLine(rect.x, rect.y + rect.height, rect.x + rect.width, rect.y + rect.height);
-
+ dc.DrawLine(rect.x, rect.y + rect.height - 1, rect.x + rect.width, rect.y + rect.height - 1);
}
else if (borderBottom > 1)
{
}
else if (borderBottom > 1)
{
wxBrush brush(col);
dc.SetPen(pen);
dc.SetBrush(brush);
wxBrush brush(col);
dc.SetPen(pen);
dc.SetBrush(brush);
- dc.DrawRectangle(rect.x, rect.y + rect.height - borderBottom + 1, rect.width, borderBottom);
+ dc.DrawRectangle(rect.x, rect.y + rect.height - borderBottom, rect.width, borderBottom);