fix up size and drawing of measure lines, even when vertically scrolled

This commit is contained in:
Paul Davis 2013-06-24 23:03:11 -04:00
parent a1f858d3b2
commit 2108525187
3 changed files with 3 additions and 4 deletions

View File

@ -176,7 +176,7 @@ Editor::draw_measures (ARDOUR::TempoMap::BBTPointList::const_iterator& begin,
}
if (tempo_lines == 0) {
tempo_lines = new TempoLines (*_track_canvas, time_line_group, physical_screen_height(get_window()));
tempo_lines = new TempoLines (*_track_canvas, time_line_group, ArdourCanvas::COORD_MAX);
}
tempo_lines->draw (begin, end, samples_per_pixel);

View File

@ -25,10 +25,10 @@
using namespace std;
TempoLines::TempoLines (ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double screen_height)
TempoLines::TempoLines (ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double h)
: _canvas (canvas)
, _group (group)
, _height (screen_height)
, _height (h)
{
}

View File

@ -39,7 +39,6 @@ typedef double Distance;
typedef uint32_t Color;
extern Coord const COORD_MAX;
extern Coord const CAIRO_MAX;
struct Duple
{