From ca2977039b671cac5c7afc43bdb30984c62442de Mon Sep 17 00:00:00 2001 From: akleja <49785979+akleja@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:53:01 +0200 Subject: [PATCH] Draw v-ruler border in height with affordances The affordances made parts of the 1px black border between v-ruler and track controls not draw properly. This resulted in graphical glitches where the border should be. Signed-off-by: akleja --- src/TrackPanel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index f2a42ad07..193c1c2c0 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -1291,6 +1291,13 @@ public: context.dc.DrawRectangle(rect); wxRect bevel(rect.x, rect.y, rect.width - 1, rect.height - 1); AColor::BevelTrackInfo(context.dc, true, bevel, false); + // Stroke the left border + context.dc.SetPen(*wxBLACK_PEN); + { + const auto left = rect.GetLeft(); + AColor::Line( context.dc, left - 1, rect.GetTop(), + left - 1, rect.GetBottom() ); + } } }