Reverted change to DrawLine so it doesn't draw the last point (sorry!)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-17 22:44:07 +00:00
parent c916e13bc0
commit 058939fc08
2 changed files with 5 additions and 4 deletions

View File

@@ -513,14 +513,14 @@ void wxSashWindow::DrawSash(wxSashEdgePosition edge, wxDC& dc)
// Draw a light grey line on the bottom to indicate that the
// sash is raised
dc.SetPen(lightShadowPen);
dc.DrawLine(0, h - GetEdgeMargin(edge), w-1, h - GetEdgeMargin(edge));
dc.DrawLine(0, h - GetEdgeMargin(edge), w, h - GetEdgeMargin(edge));
}
else
{
// Draw a drak grey line on the top to indicate that the
// sash is raised
dc.SetPen(mediumShadowPen);
dc.DrawLine(1, GetEdgeMargin(edge), w-1, GetEdgeMargin(edge));
dc.DrawLine(1, GetEdgeMargin(edge), w, GetEdgeMargin(edge));
}
}
}

View File

@@ -360,8 +360,9 @@ void wxDC::DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
(void)MoveToEx(GetHdc(), XLOG2DEV(x1), YLOG2DEV(y1), NULL);
(void)LineTo(GetHdc(), XLOG2DEV(x2), YLOG2DEV(y2));
// Normalization: Windows doesn't draw the last point of the line
(void)LineTo(GetHdc(), XLOG2DEV(x2) + 1, YLOG2DEV(y2));
// Normalization: Windows doesn't draw the last point of the line.
// But apparently neither does GTK+, so we take it out again.
// (void)LineTo(GetHdc(), XLOG2DEV(x2) + 1, YLOG2DEV(y2));
CalcBoundingBox(x1, y1);
CalcBoundingBox(x2, y2);