commit ca3e8b775abeb2e2158ddc3e7c09bfd9082defc4 parent 2351dbc3db370ded800b244a293660ca8caa9012 Author: falkTX <falktx@falktx.com> Date: Tue, 6 Sep 2022 16:00:09 +0100 Set default size for parameters example Diffstat:
M | examples/Parameters/DistrhoPluginInfo.h | | | 2 | ++ |
M | examples/Parameters/ExampleUIParameters.cpp | | | 2 | +- |
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/Parameters/DistrhoPluginInfo.h b/examples/Parameters/DistrhoPluginInfo.h @@ -28,5 +28,7 @@ #define DISTRHO_PLUGIN_WANT_PROGRAMS 1 #define DISTRHO_UI_FILE_BROWSER 0 #define DISTRHO_UI_USER_RESIZABLE 1 +#define DISTRHO_UI_DEFAULT_WIDTH 512 +#define DISTRHO_UI_DEFAULT_HEIGHT 512 #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED diff --git a/examples/Parameters/ExampleUIParameters.cpp b/examples/Parameters/ExampleUIParameters.cpp @@ -33,7 +33,7 @@ class ExampleUIParameters : public UI public: /* constructor */ ExampleUIParameters() - : UI(512, 512) + : UI(DISTRHO_UI_DEFAULT_WIDTH, DISTRHO_UI_DEFAULT_HEIGHT) { /** Initialize all our parameters to their defaults.