fix up size and drawing of measure lines, even when vertically scrolled
This commit is contained in:
parent
a1f858d3b2
commit
2108525187
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,6 @@ typedef double Distance;
|
||||
typedef uint32_t Color;
|
||||
|
||||
extern Coord const COORD_MAX;
|
||||
extern Coord const CAIRO_MAX;
|
||||
|
||||
struct Duple
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user