diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-06 07:57:01 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-06 07:57:19 -0400 |
commit | fc69b29c885245fff53b5c0f4117b9fbc5de7344 (patch) | |
tree | 83ab5c57dcdad94b8a7685cfb293a0d73d45c352 /gtk2_ardour/note_base.h | |
parent | 3322e6f5a596c69a3c6e5fc3167fbebb69794887 (diff) |
avoid crazy costs of looking up and constructing color modifier every time, and cache color values for MIDI notes
Diffstat (limited to 'gtk2_ardour/note_base.h')
-rw-r--r-- | gtk2_ardour/note_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/note_base.h b/gtk2_ardour/note_base.h index 7062884e5b..574ca54e6d 100644 --- a/gtk2_ardour/note_base.h +++ b/gtk2_ardour/note_base.h @@ -142,6 +142,8 @@ private: bool event_handler (GdkEvent *); static Gtkmm2ext::Color _selected_col; + static Gtkmm2ext::SVAModifier color_modifier; + static Gtkmm2ext::Color velocity_color_table[128]; static bool _color_init; }; |