diff options
Diffstat (limited to 'plugins/ZaMultiComp')
-rw-r--r-- | plugins/ZaMultiComp/DistrhoPluginInfo.h | 5 | ||||
-rw-r--r-- | plugins/ZaMultiComp/ZaMultiCompUI.cpp | 4 | ||||
-rw-r--r-- | plugins/ZaMultiComp/ZaMultiCompUI.hpp | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/plugins/ZaMultiComp/DistrhoPluginInfo.h b/plugins/ZaMultiComp/DistrhoPluginInfo.h index 26a1c25..eb5f927 100644 --- a/plugins/ZaMultiComp/DistrhoPluginInfo.h +++ b/plugins/ZaMultiComp/DistrhoPluginInfo.h @@ -18,6 +18,8 @@ #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED +#include "ZaMultiCompArtwork.hpp" + #define DISTRHO_PLUGIN_BRAND "ZamAudio" #define DISTRHO_PLUGIN_NAME "ZaMultiComp" @@ -33,6 +35,9 @@ #define DISTRHO_PLUGIN_WANT_TIMEPOS 0 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 +#define DISTRHO_UI_DEFAULT_WIDTH ZaMultiCompArtwork::zamulticompWidth +#define DISTRHO_UI_DEFAULT_HEIGHT ZaMultiCompArtwork::zamulticompHeight + #define DISTRHO_PLUGIN_URI "urn:zamaudio:ZaMultiComp" #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:DynamicsPlugin" #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Dynamics|Mono" diff --git a/plugins/ZaMultiComp/ZaMultiCompUI.cpp b/plugins/ZaMultiComp/ZaMultiCompUI.cpp index d45051a..3fd6744 100644 --- a/plugins/ZaMultiComp/ZaMultiCompUI.cpp +++ b/plugins/ZaMultiComp/ZaMultiCompUI.cpp @@ -23,10 +23,8 @@ START_NAMESPACE_DISTRHO // ----------------------------------------------------------------------- ZaMultiCompUI::ZaMultiCompUI() - : UI() + : UI(DISTRHO_UI_DEFAULT_WIDTH, DISTRHO_UI_DEFAULT_HEIGHT, true) { - setSize(ZaMultiCompArtwork::zamulticompWidth, ZaMultiCompArtwork::zamulticompHeight); - // background fImgBackground = Image(ZaMultiCompArtwork::zamulticompData, ZaMultiCompArtwork::zamulticompWidth, ZaMultiCompArtwork::zamulticompHeight, kImageFormatBGR); diff --git a/plugins/ZaMultiComp/ZaMultiCompUI.hpp b/plugins/ZaMultiComp/ZaMultiCompUI.hpp index e0c52e1..2c71013 100644 --- a/plugins/ZaMultiComp/ZaMultiCompUI.hpp +++ b/plugins/ZaMultiComp/ZaMultiCompUI.hpp @@ -22,8 +22,6 @@ #include "ImageWidgets.hpp" #include "../../widgets/ZamWidgets.hpp" -#include "ZaMultiCompArtwork.hpp" - #define COMPOINTS 1000 #define MAX_COMP 3 |