From 3e11f95d6b5f60dfefb40aa37186caaafacd4643 Mon Sep 17 00:00:00 2001 From: spx Date: Tue, 26 Apr 2011 11:03:08 +0000 Subject: [PATCH] Tweaked. --- Library/MeterLine.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Library/MeterLine.cpp b/Library/MeterLine.cpp index 6684a9ab..bafd6edd 100644 --- a/Library/MeterLine.cpp +++ b/Library/MeterLine.cpp @@ -297,7 +297,6 @@ bool CMeterLine::Draw(Graphics& graphics) // Draw all the lines const REAL H = m_H - 1.0f; - const bool closeRequired = (m_LineWidth != 1.0); counter = 0; std::vector< std::vector >::const_iterator i = m_AllValues.begin(); for (; i != m_AllValues.end(); ++i) @@ -329,16 +328,12 @@ bool CMeterLine::Draw(Graphics& graphics) path.AddLine((REAL)(j - 1), oldY, (REAL)j, Y); - if (closeRequired) - { - path.CloseFigure(); - } - oldY = Y; } // Draw cached lines Pen pen(m_Colors[counter], (REAL)m_LineWidth); + pen.SetLineJoin(LineJoinBevel); graphics.DrawPath(&pen, &path); ++counter;