13
0

Resolve more ambiguous Rect (fixes macOS build)

This commit is contained in:
Robin Gareus 2021-12-18 23:18:47 +01:00
parent d4145f0cb1
commit bae4bbfc0c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -75,13 +75,13 @@ Loopster::set_fraction (float f)
}
void
Loopster::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
Loopster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
{
/* Note that item_to_window() already takes _position into account (as
* part of item_to_canvas()
*/
Rect self (item_to_window (_rect));
const Rect draw = self.intersection (area);
ArdourCanvas::Rect self (item_to_window (_rect));
ArdourCanvas::Rect const draw = self.intersection (area);
if (!draw) {
return;
@ -141,13 +141,13 @@ PassThru::set_enabled (bool e)
}
void
PassThru::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
PassThru::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
{
/* Note that item_to_window() already takes _position into account (as
* part of item_to_canvas()
*/
Rect self (item_to_window (_rect));
const Rect draw = self.intersection (area);
ArdourCanvas::Rect self (item_to_window (_rect));
ArdourCanvas::Rect const draw = self.intersection (area);
if (!draw) {
return;
@ -236,13 +236,13 @@ TriggerMaster::set_trigger (boost::shared_ptr<ARDOUR::TriggerBox> t)
}
void
TriggerMaster::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
TriggerMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
{
/* Note that item_to_window() already takes _position into account (as
* part of item_to_canvas()
*/
Rect self (item_to_window (_rect));
const Rect draw = self.intersection (area);
ArdourCanvas::Rect self (item_to_window (_rect));
ArdourCanvas::Rect const draw = self.intersection (area);
if (!draw) {
return;
@ -564,13 +564,13 @@ CueMaster::~CueMaster ()
}
void
CueMaster::render (Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
CueMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Context> context) const
{
/* Note that item_to_window() already takes _position into account (as
part of item_to_canvas()
*/
Rect self (item_to_window (_rect));
const Rect draw = self.intersection (area);
ArdourCanvas::Rect self (item_to_window (_rect));
ArdourCanvas::Rect const draw = self.intersection (area);
if (!draw) {
return;