diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-20 17:11:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-20 17:12:08 +0100 |
commit | d06de26a4fd828b6a0a9da8718e3b0c829a4d162 (patch) | |
tree | 4dedb0ad6a118e0d60aeee611652bb1180d14a8c /libs/canvas | |
parent | 3294b82e259085997f6e2f0d361cbb3ef4763545 (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 'libs/canvas')
-rw-r--r-- | libs/canvas/widget.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/widget.cc b/libs/canvas/widget.cc index 4c98d6651d..5968de5fbb 100644 --- a/libs/canvas/widget.cc +++ b/libs/canvas/widget.cc @@ -104,7 +104,7 @@ Widget::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const //context->rectangle (draw.x0, draw.y0, draw.width(), draw.height()); //context->clip (); - _widget.render (context->cobj(), &crect); + _widget.render (context, &crect); context->restore (); } |