summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2017-07-21 14:51:57 +0200
committerRobin Gareus <robin@gareus.org>2017-07-31 21:31:23 +0200
commit2716ce41e08c3e112c209b3840ff60d6e9bc2bb2 (patch)
treec18cec91f49e104ae4b7ecf8ccf6afebf3c1baf0 /libs/ardour/lv2_plugin.cc
parent59775df9be375a249b3c4cbdc7e825eee27c393e (diff)
Indicate whether to show plugin's inline display in GUI
This is currently done by an extension data similarly to LV2_INLINEDISPLAY__interface.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index 2911c6c763..2b6e802172 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -547,6 +547,8 @@ LV2Plugin::init(const void* c_plugin, framecnt_t rate)
_display_interface = (const LV2_Inline_Display_Interface*)
extension_data (LV2_INLINEDISPLAY__interface);
+ _show_display_in_generic_gui = (bool) extension_data (LV2_INLINEDISPLAY__in_gui);
+
_midname_interface = (const LV2_Midnam_Interface*)
extension_data (LV2_MIDNAM__interface);
if (_midname_interface) {
@@ -962,6 +964,11 @@ LV2Plugin::has_inline_display () {
return _display_interface ? true : false;
}
+bool
+LV2Plugin::inline_display_in_gui () {
+ return _show_display_in_generic_gui;
+}
+
Plugin::Display_Image_Surface*
LV2Plugin::render_inline_display (uint32_t w, uint32_t h) {
if (_display_interface) {