diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-02 16:39:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-02 16:39:06 +0100 |
| commit | 220518a7bf41bfd9e9da852b4d5ac1461fdd0e1a (patch) | |
| tree | c91fe6a4ee59e14052be26e742a23669e384e23d /src/wx/timeline_time_axis_view.cc | |
| parent | f07a469603298049d12e1af9deda4ad830362e58 (diff) | |
Hacks to stop scrolling track names.
Diffstat (limited to 'src/wx/timeline_time_axis_view.cc')
| -rw-r--r-- | src/wx/timeline_time_axis_view.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/timeline_time_axis_view.cc b/src/wx/timeline_time_axis_view.cc index 1947faa0b..c8808a62f 100644 --- a/src/wx/timeline_time_axis_view.cc +++ b/src/wx/timeline_time_axis_view.cc @@ -36,7 +36,7 @@ TimelineTimeAxisView::TimelineTimeAxisView (Timeline& tl, int y) dcpomatic::Rect<int> TimelineTimeAxisView::bbox () const { - return dcpomatic::Rect<int> (_timeline.tracks_position().x, _y - 4, _timeline.width(), 24); + return dcpomatic::Rect<int> (0, _y - 4, _timeline.width(), 24); } void @@ -60,7 +60,7 @@ TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> double const mark_interval = calculate_mark_interval (rint (128 / pps)); wxGraphicsPath path = gc->CreatePath (); - path.MoveToPoint (_timeline.tracks_position().x, _y); + path.MoveToPoint (0, _y); path.AddLineToPoint (_timeline.width(), _y); gc->StrokePath (path); @@ -88,7 +88,7 @@ TimelineTimeAxisView::do_paint (wxGraphicsContext* gc, list<dcpomatic::Rect<int> wxDouble str_leading; gc->GetTextExtent (str, &str_width, &str_height, &str_descent, &str_leading); - int const tx = _timeline.tracks_position().x + t.seconds() * pps; + int const tx = t.seconds() * pps; if ((tx + str_width) < _timeline.width()) { gc->DrawText (str, time_x (t), _y + 16); } |
