projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a dialog to show which screens have potentially-problematic
[dcpomatic.git]
/
src
/
wx
/
timeline_view.cc
diff --git
a/src/wx/timeline_view.cc
b/src/wx/timeline_view.cc
index 10d6dc5beb9d1e4f4d9cf9e1d584ca5c629ce7e5..2897c98e35398a27d83c13c875d6d016b90cc3c3 100644
(file)
--- 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();
+}
+
+