From 4258a349121392516543486bd9de6f13fe3f3331 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Apr 2013 11:15:45 -0400 Subject: change all frame_to_pixel and pixel_to_frame to sample_to_pixel and pixel_to_sample --- gtk2_ardour/video_image_frame.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/video_image_frame.cc') diff --git a/gtk2_ardour/video_image_frame.cc b/gtk2_ardour/video_image_frame.cc index 8e7100113e..d4d8623e5c 100644 --- a/gtk2_ardour/video_image_frame.cc +++ b/gtk2_ardour/video_image_frame.cc @@ -56,7 +56,7 @@ VideoImageFrame::VideoImageFrame (PublicEditor& ed, ArdourCanvas::Group& parent, printf("New VideoImageFrame (%ix%i) %s - %s\n", w, h, vsurl.c_str(), vfn.c_str()); #endif - unit_position = editor.frame_to_pixel (frame_position); + unit_position = editor.sample_to_pixel (frame_position); group = new ArdourCanvas::Group (_parent, ArdourCanvas::Duple(unit_position, 1.0)); img_pixbuf = new ArdourCanvas::Pixbuf(group); @@ -85,7 +85,7 @@ VideoImageFrame::~VideoImageFrame () void VideoImageFrame::set_position (framepos_t frame) { - double new_unit_position = editor.frame_to_pixel (frame); + double new_unit_position = editor.sample_to_pixel (frame); group->move (ArdourCanvas::Duple (new_unit_position - unit_position, 0.0)); frame_position = frame; unit_position = new_unit_position; -- cgit v1.2.3