diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:21:12 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:21:12 -0400 |
commit | 8877199ae052a33c68541dd610dba385645c6e1e (patch) | |
tree | e47efdbc0dad4e900df339562e77bcf56e8c55c3 /gtk2_ardour/video_timeline.cc | |
parent | 4258a349121392516543486bd9de6f13fe3f3331 (diff) |
leftmost_position => leftmost_sample, current_page_frames => current_page_samples
Diffstat (limited to 'gtk2_ardour/video_timeline.cc')
-rw-r--r-- | gtk2_ardour/video_timeline.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index 6e5d5d4e11..3ce80dd37c 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -303,7 +303,7 @@ VideoTimeLine::update_video_timeline() } double frames_per_unit = editor->pixel_to_sample(1.0); - framepos_t leftmost_frame = editor->leftmost_position(); + framepos_t leftmost_frame = editor->leftmost_sample(); /* Outline: * 1) calculate how many frames there should be in current zoom (plus 1 page on each side) @@ -352,7 +352,7 @@ VideoTimeLine::update_video_timeline() leftmost_video_frame = floor (floor((leftmost_frame - video_start_offset - GOFFSET ) / vtl_dist) * vtl_dist / apv); vtl_start = rint (GOFFSET + video_start_offset + leftmost_video_frame * apv); - visible_video_frames = 2 + ceil(editor->current_page_frames() / vtl_dist); /* +2 left+right partial frames */ + visible_video_frames = 2 + ceil(editor->current_page_samples() / vtl_dist); /* +2 left+right partial frames */ /* expand timeline (cache next/prev page images) */ vtl_start -= visible_video_frames * vtl_dist; |