summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-29 23:33:28 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-29 23:33:28 +0000
commit4e617f7dee7b4b78555ca3e80e77d26d4fa8f884 (patch)
tree3b4bbfc9b6fd3d8bef69cf1748f495dfe2eb606b /src
parent77d530b693f01decd490dfbbad8bfa26087461af (diff)
Nicer appearance when butting two content views up together.
Diffstat (limited to 'src')
-rw-r--r--src/wx/timeline_content_view.cc10
1 files 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);