mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
use modified Canvas::LineSet API
This commit is contained in:
parent
5a9b28dd62
commit
968731780f
2 changed files with 6 additions and 7 deletions
|
|
@ -66,12 +66,11 @@ GridLines::draw (std::vector<Ruler::Mark> marks)
|
||||||
samplepos_t s = m->position;
|
samplepos_t s = m->position;
|
||||||
|
|
||||||
if ((*m).style == ArdourCanvas::Ruler::Mark::Major) {
|
if ((*m).style == ArdourCanvas::Ruler::Mark::Major) {
|
||||||
lines.add (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, major_color);
|
lines.add_line (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, major_color);
|
||||||
} else if ((*m).style == ArdourCanvas::Ruler::Mark::Minor) {
|
} else if ((*m).style == ArdourCanvas::Ruler::Mark::Minor) {
|
||||||
lines.add (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, minor_color);
|
lines.add_line (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, minor_color);
|
||||||
} else {
|
} else {
|
||||||
lines.add (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, micro_color);
|
lines.add_line (PublicEditor::instance().sample_to_pixel_unrounded (s), 1.0, micro_color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -342,7 +342,7 @@ MidiStreamView::draw_note_lines()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (i <= highest_note()) {
|
if (i <= highest_note()) {
|
||||||
_note_lines->add (y, 1.0, UIConfiguration::instance().color ("piano roll black outline"));
|
_note_lines->add_line (y, 1.0, UIConfiguration::instance().color ("piano roll black outline"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now add a thicker line/bar which covers the entire vertical
|
/* now add a thicker line/bar which covers the entire vertical
|
||||||
|
|
@ -366,7 +366,7 @@ MidiStreamView::draw_note_lines()
|
||||||
double mid = y + (h/2.0);
|
double mid = y + (h/2.0);
|
||||||
|
|
||||||
if (mid >= 0 && h > 1.0) {
|
if (mid >= 0 && h > 1.0) {
|
||||||
_note_lines->add (mid, h, color);
|
_note_lines->add_line (mid, h, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
prev_y = y;
|
prev_y = y;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue