diff options
author | David Robillard <d@drobilla.net> | 2015-01-10 19:38:37 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-10 19:38:37 -0500 |
commit | 0a5d5f91c9eda4a7def4f9819a57776d07150738 (patch) | |
tree | 5160a89ef6e2c1769849d2f2684b35660d99e87e /gtk2_ardour/tempo_lines.cc | |
parent | 780c17620e53fee1d12af6632c176d920ccca849 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/tempo_lines.cc')
-rw-r--r-- | gtk2_ardour/tempo_lines.cc | 4 |
1 files 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); } |