Nicer appearance when butting two content views up together.
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Jan 2016 23:33:28 +0000 (23:33 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Jan 2016 23:33:28 +0000 (23:33 +0000)
src/wx/timeline_content_view.cc

index 98ef0abb4a3aa65a14ce9215840ff75f9d6d8573..13575b28004787b340481522b13d401fe80dbec1 100644 (file)
@@ -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);