aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson_options.txt2
-rw-r--r--src/mephisto_ui.c26
-rw-r--r--ttl/mephisto_ui.ttl4
3 files changed, 5 insertions, 27 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 56ce98a..34d57cf 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -27,4 +27,4 @@ option('lv2libdir',
type : 'string',
value : 'lib/lv2')
-option('version', type : 'string', value : '0.1.21')
+option('version', type : 'string', value : '0.1.25')
diff --git a/src/mephisto_ui.c b/src/mephisto_ui.c
index 1317580..32adfea 100644
--- a/src/mephisto_ui.c
+++ b/src/mephisto_ui.c
@@ -1237,7 +1237,6 @@ instantiate(const LV2UI_Descriptor *descriptor,
_reset_wavs(handle);
void *parent = NULL;
- LV2UI_Resize *host_resize = NULL;
LV2_Options_Option *opts = NULL;
for(int i=0; features[i]; i++)
{
@@ -1245,10 +1244,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;
@@ -1406,11 +1401,6 @@ instantiate(const LV2UI_Descriptor *descriptor,
handle->state.font_height = 16;
_update_font_height(handle);
- if(host_resize)
- {
- host_resize->ui_resize(host_resize->handle, w, h);
- }
-
strncpy(handle->template, "/tmp/XXXXXX.dsp", sizeof(handle->template));
handle->fd = mkstemps(handle->template, 4);
if(handle->fd == -1)
@@ -1530,25 +1520,13 @@ static const LV2UI_Idle_Interface idle_ext = {
.idle = _idle
};
-static int
-_resize(LV2UI_Handle instance, int width, int height)
-{
- plughandle_t *handle = instance;
-
- return d2tk_frontend_set_size(handle->dpugl, 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/ttl/mephisto_ui.ttl b/ttl/mephisto_ui.ttl
index 5f39044..49f3ab0 100644
--- a/ttl/mephisto_ui.ttl
+++ b/ttl/mephisto_ui.ttl
@@ -47,7 +47,7 @@ mephisto:ui
ui:protocol atom:eventTransfer ;
] ;
lv2:requiredFeature ui:idleInterface, urid:map, ui:parent ;
- lv2:optionalFeature ui:requestValue, ui:resize, opts:options, log:log ;
+ lv2:optionalFeature ui:requestValue, opts:options, log:log ;
opts:supportedOption ui:scaleFactor ;
#opts:requiredOption param:sampleRate ;
- lv2:extensionData ui:idleInterface, ui:resize .
+ lv2:extensionData ui:idleInterface .