From c7307c09b8584b15610f0b29a40f839d9183419a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Sep 2006 16:26:04 +0000 Subject: [PATCH] Measure line tweaks git-svn-id: svn://localhost/ardour2/branches/midi@907 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_tempodisplay.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 55e406c4fc..db1ee5e34e 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -190,10 +190,15 @@ Editor::draw_measures () last_beat = xpos; } } + + if (beat_spacing < 3.0) { + /* if the lines are too close together, they become useless */ + return; + } double x1, x2, y1, y2; track_canvas.get_scroll_region (x1, y1, x2, y2); - //y2 = 1000000000.0f; + y2 = 1000000000.0f; for (i = current_bbt_points->begin(); i != current_bbt_points->end(); ++i) { @@ -215,7 +220,7 @@ Editor::draw_measures () are large. */ - if (beat_spacing < 15.0) { + if (beat_spacing < 4.0) { break; } }