summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-06 16:26:04 +0000
committerDavid Robillard <d@drobilla.net>2006-09-06 16:26:04 +0000
commitc7307c09b8584b15610f0b29a40f839d9183419a (patch)
tree819b24dd11021c3867a5c65a3ba5db7ea8e0c0da /gtk2_ardour
parentbd1220a46db9fe909d09c08139cfb61ba98ec9f3 (diff)
Measure line tweaks
git-svn-id: svn://localhost/ardour2/branches/midi@907 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc9
1 files 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;
}
}