diff options
Diffstat (limited to 'src/x11_in_qt4.cpp')
-rw-r--r-- | src/x11_in_qt4.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp index aca2146..f7c9c3f 100644 --- a/src/x11_in_qt4.cpp +++ b/src/x11_in_qt4.cpp @@ -36,15 +36,13 @@ wrapper_wrap(SuilWrapper* wrapper, return 0; } -#ifdef HAVE_LV2_UI_RESIZE static int -wrapper_resize(LV2_UI_Resize_Feature_Data data, int width, int height) +wrapper_resize(LV2UI_Resize_Handle handle, int width, int height) { - QX11EmbedWidget* const ew = (QX11EmbedWidget*)data; + QX11EmbedWidget* const ew = (QX11EmbedWidget*)handle; ew->resize(width, height); return 0; } -#endif SUIL_API SuilWrapper* @@ -75,15 +73,13 @@ suil_wrapper_new(SuilHost* host, wrapper->features[n_features + 1] = NULL; wrapper->features[n_features + 2] = NULL; -#ifdef HAVE_LV2_UI_RESIZE - wrapper->resize.data = ew; + wrapper->resize.handle = ew; wrapper->resize.ui_resize = wrapper_resize; LV2_Feature* resize_feature = (LV2_Feature*)malloc(sizeof(LV2_Feature)); resize_feature->URI = "http://lv2plug.in/ns/ext/ui-resize#UIResize"; resize_feature->data = &wrapper->resize; wrapper->features[n_features + 1] = resize_feature; -#endif return wrapper; } |