summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_tempodisplay.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-08 19:53:06 +0000
committerDavid Robillard <d@drobilla.net>2006-10-08 19:53:06 +0000
commit8011cbf5f8e4181ac39e4140e681fcad531f4a7c (patch)
treee1f5f739ac078a94039f03d48c19170bcecb910a /gtk2_ardour/editor_tempodisplay.cc
parentaf441a832e5c338348cd0e7917b7e4b1dc26eb7b (diff)
Bar/Beat line aesthetic fixes.
git-svn-id: svn://localhost/ardour2/trunk@958 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_tempodisplay.cc')
-rw-r--r--gtk2_ardour/editor_tempodisplay.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc
index 2e01f68eb8..270ea38b2e 100644
--- a/gtk2_ardour/editor_tempodisplay.cc
+++ b/gtk2_ardour/editor_tempodisplay.cc
@@ -210,12 +210,10 @@ Editor::draw_measures ()
beat_density = (beats * 10.0f) / track_canvas.get_width ();
- if (beat_density > 2.0f) {
- /*
- if the lines are too close together,
- they become useless
- */
- return;
+ if (beat_density > 4.0f) {
+ /* if the lines are too close together, they become useless
+ */
+ return;
}
for (i = current_bbt_points->begin(); i != current_bbt_points->end(); ++i) {
@@ -231,12 +229,10 @@ Editor::draw_measures ()
} else {
color = color_map[cMeasureLineBar];
- /* only draw beat lines if the gaps between beats
- are large.
- */
-
- if (beat_density > 0.25) {
- break;
+ if (beat_density > 2.0) {
+ /* only draw beat lines if the gaps between beats are large.
+ */
+ break;
}
}