Use a dedicated Canvas Group for MRV

This fixes rendering of opaque MIDI regions (previously
MIDI regions were always transparent). This change provides a
way to "flatten" layered MIDI regions, while still allowing
to show the note-line and grid behind the regions.
This commit is contained in:
Robin Gareus 2022-12-09 01:36:15 +01:00
parent 1efa5e9a55
commit f003bee985
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 24 additions and 12 deletions

View file

@ -86,7 +86,7 @@ public:
virtual bool can_change_layer_display() const { return true; }
LayerDisplay layer_display () const { return _layer_display; }
ArdourCanvas::Container* canvas_item() { return _canvas_group; }
virtual ArdourCanvas::Container* region_canvas () const { return _canvas_group; }
enum ColorTarget {
RegionColor,