Skip to content

Commit

Permalink
Raise threshold for showing ticks for a bit.
Browse files Browse the repository at this point in the history
This fixes two zoom levels (the closest that shows bars, and the next closest)
that had the same tick resolution despite enough space.
  • Loading branch information
drobilla committed Jan 11, 2015
1 parent 780c176 commit 0a5d5f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtk2_ardour/tempo_lines.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit 0a5d5f9

Please sign in to comment.