Browse Source

Set default size for parameters example

pull/321/merge
falkTX 3 years ago
parent
commit
ca3e8b775a
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      examples/Parameters/DistrhoPluginInfo.h
  2. +1
    -1
      examples/Parameters/ExampleUIParameters.cpp

+ 2
- 0
examples/Parameters/DistrhoPluginInfo.h View File

@@ -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

+ 1
- 1
examples/Parameters/ExampleUIParameters.cpp View File

@@ -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.


Loading…
Cancel
Save