From 0a5d5f91c9eda4a7def4f9819a57776d07150738 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Jan 2015 19:38:37 -0500 Subject: [PATCH] Raise threshold for showing ticks for a bit. This fixes two zoom levels (the closest that shows bars, and the next closest) that had the same tick resolution despite enough space. --- gtk2_ardour/tempo_lines.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/tempo_lines.cc b/gtk2_ardour/tempo_lines.cc index deca09b963..5d8b7be86a 100644 --- a/gtk2_ardour/tempo_lines.cc +++ b/gtk2_ardour/tempo_lines.cc @@ -117,7 +117,7 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin, lines.clear (); - if (beat_density < 0.1 && begin != end && begin->frame > 0) { + if (beat_density <= 0.12 && begin != end && begin->frame > 0) { /* draw subdivisions of the beat before the first visible beat line */ ARDOUR::TempoMap::BBTPointList::const_iterator prev = begin; --prev; @@ -139,7 +139,7 @@ TempoLines::draw (const ARDOUR::TempoMap::BBTPointList::const_iterator& begin, lines.add (xpos, 1.0, color); - if (beat_density < 0.1) { + if (beat_density <= 0.12) { /* draw subdivisions of this beat */ draw_ticks(i, divisions, leftmost_frame, frame_rate); }