aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--sherlock_nk.c14
-rw-r--r--sherlock_ui.ttl6
3 files changed, 18 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 04a373e..d7ba752 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.16.0
+0.17.25
diff --git a/sherlock_nk.c b/sherlock_nk.c
index e3280df..cbd1fd3 100644
--- a/sherlock_nk.c
+++ b/sherlock_nk.c
@@ -527,11 +527,25 @@ static const LV2UI_Idle_Interface idle_ext = {
.idle = _idle
};
+static int
+_resize(LV2UI_Handle instance, int width, int height)
+{
+ plughandle_t *handle = instance;
+
+ return nk_pugl_resize(&handle->win, width, height);
+}
+
+static const LV2UI_Resize resize_ext = {
+ .ui_resize = _resize
+};
+
static const void *
extension_data(const char *uri)
{
if(!strcmp(uri, LV2_UI__idleInterface))
return &idle_ext;
+ else if(!strcmp(uri, LV2_UI__resize))
+ return &resize_ext;
return NULL;
}
diff --git a/sherlock_ui.ttl b/sherlock_ui.ttl
index 96fe51f..7395ea1 100644
--- a/sherlock_ui.ttl
+++ b/sherlock_ui.ttl
@@ -33,7 +33,7 @@ sherlock:atom_inspector_4_nk
] ;
lv2:extensionData ui:idleInterface ;
lv2:optionalFeature ui:resize ;
- lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap .
+ lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap, ui:resize .
# MIDI Inspector UI
sherlock:midi_inspector_4_nk
@@ -46,7 +46,7 @@ sherlock:midi_inspector_4_nk
] ;
lv2:extensionData ui:idleInterface ;
lv2:optionalFeature ui:resize ;
- lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap .
+ lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap, ui:resize .
# OSC Inspector UI
sherlock:osc_inspector_4_nk
@@ -59,4 +59,4 @@ sherlock:osc_inspector_4_nk
] ;
lv2:extensionData ui:idleInterface ;
lv2:optionalFeature ui:resize ;
- lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap .
+ lv2:requiredFeature ui:idleInterface, urid:map, urid:unmap, ui:resize .