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.h | |
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.h')
-rw-r--r-- | gtk2_ardour/audio_clock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index 6b8c31d5ad..3336f9e2bd 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -102,7 +102,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr static std::vector<AudioClock*> clocks; protected: - void render (cairo_t*, cairo_rectangle_t*); + void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*); bool get_is_duration () const { return is_duration; } ; virtual void build_ops_menu (); |