change all frame_to_pixel and pixel_to_frame to sample_to_pixel and pixel_to_sample
[ardour.git] / gtk2_ardour / editor_videotimeline.cc
index e1adb6c8b6faa35f9d30e71ef18bdb63810b6890..574400c2d9f16e5291aafb858ff147c723f1e86c 100644 (file)
@@ -58,8 +58,8 @@ Editor::update_video_timeline (bool flush)
 #if DEBUG
        framepos_t rightmost_frame = leftmost_frame + current_page_frames();
        std::cout << "VIDEO SCROLL: " << leftmost_frame << " -- " << rightmost_frame << std::endl;
-       std::cout << "SCROLL UNITS: " << frame_to_unit(leftmost_frame) << " -- " << frame_to_unit(rightmost_frame)
-                 << " = " << frame_to_unit(rightmost_frame) - frame_to_unit(leftmost_frame)
+       std::cout << "SCROLL UNITS: " << sample_to_pixel(leftmost_frame) << " -- " << sample_to_pixel(rightmost_frame)
+                 << " = " << sample_to_pixel(rightmost_frame) - sample_to_pixel(leftmost_frame)
                        << std::endl;
 #endif