Towards a consistent render() API.

This fixes an -Woverloaded-virtual ambiguity introduced in b5e613d45

  void render (cairo_t*, cairo_rectagle*)
  void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*)

ArdourCanvas prefers cairomm and CairoWidget itself uses Cairo::Context,
this improves overall API consistency.
This commit is contained in:
Robin Gareus 2017-03-20 17:11:56 +01:00
parent 3294b82e25
commit d06de26a4f
30 changed files with 55 additions and 49 deletions

View file

@ -542,12 +542,12 @@ FastMeter::horizontal_size_allocate (Gtk::Allocation &alloc)
}
void
FastMeter::render (cairo_t* cr, cairo_rectangle_t* area)
FastMeter::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t* area)
{
if (orientation == Vertical) {
return vertical_expose (cr, area);
return vertical_expose (cr->cobj(), area);
} else {
return horizontal_expose (cr, area);
return horizontal_expose (cr->cobj(), area);
}
}