diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-21 00:24:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-21 00:24:31 +0100 |
| commit | 4d8f96e15edb4807cc9773cc7f9eb6aa56ac2dc8 (patch) | |
| tree | 7b534e00479877732601b6e7543b70a651557f55 /src/wx/timeline_view.cc | |
| parent | ef25237193100de106eccdb8f40524fa670bda76 (diff) | |
Move y_pos to TimelineView.
Diffstat (limited to 'src/wx/timeline_view.cc')
| -rw-r--r-- | src/wx/timeline_view.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/timeline_view.cc b/src/wx/timeline_view.cc index 10d6dc5be..2897c98e3 100644 --- a/src/wx/timeline_view.cc +++ b/src/wx/timeline_view.cc @@ -58,3 +58,12 @@ TimelineView::time_x (DCPTime t) const { return t.seconds() * _timeline.pixels_per_second().get_value_or(0); } + + +int +TimelineView::y_pos(int t) const +{ + return t * _timeline.pixels_per_track() + _timeline.tracks_y_offset(); +} + + |
