13
0

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.
This commit is contained in:
David Robillard 2015-01-10 19:38:37 -05:00
parent 780c17620e
commit 0a5d5f91c9

View File

@ -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);
}