diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:15:45 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-12 11:15:45 -0400 |
commit | 4258a349121392516543486bd9de6f13fe3f3331 (patch) | |
tree | 3cd0c6b61a58e006483d0782326b43246d9eb55e /gtk2_ardour/marker.cc | |
parent | ecfd2a74552a45781e4d57a09e73313cd8815a4d (diff) |
change all frame_to_pixel and pixel_to_frame to sample_to_pixel and pixel_to_sample
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r-- | gtk2_ardour/marker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index ed65cc221b..20f28bd785 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -234,7 +234,7 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con } frame_position = frame; - unit_position = editor.frame_to_pixel (frame); + unit_position = editor.sample_to_pixel (frame); unit_position -= _shift; group = new ArdourCanvas::Group (&parent, ArdourCanvas::Duple (unit_position, 0)); @@ -429,7 +429,7 @@ Marker::setup_name_display () void Marker::set_position (framepos_t frame) { - unit_position = editor.frame_to_pixel (frame) - _shift; + unit_position = editor.sample_to_pixel (frame) - _shift; group->set_x_position (unit_position); frame_position = frame; } |