From 650f16620d270523aee04b15419dc9d667042928 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 31 May 2012 17:07:02 +0000 Subject: Don't round conversions from frame to unit when setting up control points, as it will cause big inaccuracies when zoomed out. git-svn-id: svn://localhost/ardour2/branches/3.0@12503 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk2_ardour/editor.h') diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index e51fe88d45..0dd162ca20 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -239,6 +239,10 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD return rint ((double) frame / (double) frames_per_unit); } + double frame_to_unit_unrounded (framepos_t frame) const { + return frame / frames_per_unit; + } + double frame_to_unit (double frame) const { return rint (frame / frames_per_unit); } -- cgit v1.2.3