mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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:
parent
3294b82e25
commit
d06de26a4f
30 changed files with 55 additions and 49 deletions
|
|
@ -405,8 +405,9 @@ struct LocationMarkerSort {
|
|||
};
|
||||
|
||||
void
|
||||
MiniTimeline::render (cairo_t* cr, cairo_rectangle_t*)
|
||||
MiniTimeline::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t*)
|
||||
{
|
||||
cairo_t* cr = ctx->cobj();
|
||||
// TODO cache, set_colors()
|
||||
ArdourCanvas::Color base = UIConfiguration::instance().color ("ruler base");
|
||||
ArdourCanvas::Color text = UIConfiguration::instance().color ("ruler text");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue