From ca3e8b775abeb2e2158ddc3e7c09bfd9082defc4 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 6 Sep 2022 16:00:36 +0100 Subject: [PATCH] Set default size for parameters example --- examples/Parameters/DistrhoPluginInfo.h | 2 ++ examples/Parameters/ExampleUIParameters.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Parameters/DistrhoPluginInfo.h b/examples/Parameters/DistrhoPluginInfo.h index 1de8db5f..649ab70a 100644 --- 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 index 34629d47..ca44b906 100644 --- 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.