mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
canvas: skip intermediate Canvas::Rect object (trivial optimization)
This commit is contained in:
parent
55b862832a
commit
4c5c7769bb
1 changed files with 2 additions and 4 deletions
|
|
@ -116,14 +116,12 @@ LineSet::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
||||||
}
|
}
|
||||||
|
|
||||||
self = item_to_window (self);
|
self = item_to_window (self);
|
||||||
Rect isect = self.intersection (area);
|
Rect intersection = self.intersection (area);
|
||||||
|
|
||||||
if (!isect) {
|
if (!intersection) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect intersection (isect);
|
|
||||||
|
|
||||||
Gtkmm2ext::set_source_rgba (context, l.color);
|
Gtkmm2ext::set_source_rgba (context, l.color);
|
||||||
context->set_line_width (l.width);
|
context->set_line_width (l.width);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue