From 07ebc0fbfc128f4f4145d74b1ad69c687575ee90 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 16 Jul 2022 01:05:34 +0200 Subject: [PATCH] remove deprecated ui:resize feature/extension. --- VERSION | 2 +- midi_matrix_channel_filter_nk.c | 21 +-------------------- midi_matrix_ui.ttl | 3 +-- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index 5f94ce0..c11ac19 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.31.5 +0.31.5 cut -d. -f1.1.7 diff --git a/midi_matrix_channel_filter_nk.c b/midi_matrix_channel_filter_nk.c index 2099bba..b472be8 100644 --- a/midi_matrix_channel_filter_nk.c +++ b/midi_matrix_channel_filter_nk.c @@ -150,7 +150,6 @@ instantiate(const LV2UI_Descriptor *descriptor, return NULL; void *parent = NULL; - LV2UI_Resize *host_resize = NULL; LV2_Options_Option *opts = NULL; for(int i=0; features[i]; i++) { @@ -158,10 +157,6 @@ instantiate(const LV2UI_Descriptor *descriptor, { parent = features[i]->data; } - else if(!strcmp(features[i]->URI, LV2_UI__resize)) - { - host_resize = features[i]->data; - } else if(!strcmp(features[i]->URI, LV2_URID__map)) { handle->map = features[i]->data; @@ -221,7 +216,7 @@ instantiate(const LV2UI_Descriptor *descriptor, cfg->class = "channel_filter"; cfg->title = "Channel Filter"; cfg->parent = (intptr_t)parent; - cfg->host_resize = host_resize; + cfg->host_resize = NULL; cfg->data = handle; cfg->expose = _expose; @@ -307,25 +302,11 @@ 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/midi_matrix_ui.ttl b/midi_matrix_ui.ttl index af612f0..13cbb23 100644 --- a/midi_matrix_ui.ttl +++ b/midi_matrix_ui.ttl @@ -23,6 +23,5 @@ # Channel Filter UI midi_matrix:channel_filter_4_nk lv2:requiredFeature ui:idleInterface, urid:map, opts:options, ui:parent ; - lv2:optionalFeature ui:resize ; opts:supportedOption ui:scaleFactor ; - lv2:extensionData ui:idleInterface, ui:resize . + lv2:extensionData ui:idleInterface . -- 2.38.5