summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_report.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-20 17:11:56 +0100
committerRobin Gareus <robin@gareus.org>2017-03-20 17:12:08 +0100
commitd06de26a4fd828b6a0a9da8718e3b0c829a4d162 (patch)
tree4dedb0ad6a118e0d60aeee611652bb1180d14a8c /gtk2_ardour/export_report.h
parent3294b82e259085997f6e2f0d361cbb3ef4763545 (diff)
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.
Diffstat (limited to 'gtk2_ardour/export_report.h')
-rw-r--r--gtk2_ardour/export_report.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/export_report.h b/gtk2_ardour/export_report.h
index 65339be701..4639cafc44 100644
--- a/gtk2_ardour/export_report.h
+++ b/gtk2_ardour/export_report.h
@@ -46,12 +46,12 @@ protected:
virtual void overlay (cairo_t* cr, cairo_rectangle_t* r) {}
- virtual void render (cairo_t* cr, cairo_rectangle_t* r)
+ virtual void render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t* r)
{
- cairo_rectangle (cr, r->x, r->y, r->width, r->height);
- cairo_clip (cr);
- background (cr, r);
- overlay (cr, r);
+ ctx->rectangle (r->x, r->y, r->width, r->height);
+ ctx->clip ();
+ background (ctx->cobj(), r);
+ overlay (ctx->cobj(), r);
}
Cairo::RefPtr<Cairo::ImageSurface> _surface;