From a72bde5d3c41000a0d71bbe82c4bfa2b87aefe3e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 17 Sep 2024 09:35:02 -0600 Subject: [PATCH] add the final virtual GhostRegion method to VelocityGhostRegion --- gtk2_ardour/velocity_ghost_region.cc | 6 ++++++ gtk2_ardour/velocity_ghost_region.h | 1 + 2 files changed, 7 insertions(+) diff --git a/gtk2_ardour/velocity_ghost_region.cc b/gtk2_ardour/velocity_ghost_region.cc index 9b83adf640..ea4415639a 100644 --- a/gtk2_ardour/velocity_ghost_region.cc +++ b/gtk2_ardour/velocity_ghost_region.cc @@ -117,3 +117,9 @@ VelocityGhostRegion::update_contents_height () { VelocityDisplay::redisplay (); } + +void +VelocityGhostRegion::update_hit (GhostEvent* gev) +{ + update_note (gev); +} diff --git a/gtk2_ardour/velocity_ghost_region.h b/gtk2_ardour/velocity_ghost_region.h index 289f44e30a..e94f8879cf 100644 --- a/gtk2_ardour/velocity_ghost_region.h +++ b/gtk2_ardour/velocity_ghost_region.h @@ -43,6 +43,7 @@ class VelocityGhostRegion : public MidiGhostRegion, public VelocityDisplay void note_selected (NoteBase*); void update_note (GhostEvent*); void update_contents_height (); + void update_hit (GhostEvent*); ArdourCanvas::Rectangle& base_item();