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 /gtk2_ardour/audio_clock.cc | |
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 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index b21d327201..70d5b3a713 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -275,8 +275,9 @@ AudioClock::set_scale (double x, double y) } void -AudioClock::render (cairo_t* cr, cairo_rectangle_t*) +AudioClock::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t*) { + cairo_t* cr = ctx->cobj(); /* main layout: rounded rect, plus the text */ if (_need_bg) { |