From 4e617f7dee7b4b78555ca3e80e77d26d4fa8f884 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Jan 2016 23:33:28 +0000 Subject: [PATCH] Nicer appearance when butting two content views up together. --- src/wx/timeline_content_view.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wx/timeline_content_view.cc b/src/wx/timeline_content_view.cc index 98ef0abb4..13575b280 100644 --- a/src/wx/timeline_content_view.cc +++ b/src/wx/timeline_content_view.cc @@ -113,11 +113,11 @@ TimelineContentView::do_paint (wxGraphicsContext* gc) } wxGraphicsPath path = gc->CreatePath (); - path.MoveToPoint (time_x (position), y_pos (_track.get()) + 4); - path.AddLineToPoint (time_x (position + len), y_pos (_track.get()) + 4); - path.AddLineToPoint (time_x (position + len), y_pos (_track.get() + 1) - 4); - path.AddLineToPoint (time_x (position), y_pos (_track.get() + 1) - 4); - path.AddLineToPoint (time_x (position), y_pos (_track.get()) + 4); + path.MoveToPoint (time_x (position) + 1, y_pos (_track.get()) + 4); + path.AddLineToPoint (time_x (position + len) - 1, y_pos (_track.get()) + 4); + path.AddLineToPoint (time_x (position + len) - 1, y_pos (_track.get() + 1) - 4); + path.AddLineToPoint (time_x (position) + 1, y_pos (_track.get() + 1) - 4); + path.AddLineToPoint (time_x (position) + 1, y_pos (_track.get()) + 4); gc->StrokePath (path); gc->FillPath (path); -- 2.30.2