Set DISTRHO_UI_DEFAULT_WIDTH/HEIGHT, fixing default VST3 UI size
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1cd1bb26a5
commit
cfa13e5b7b
5 changed files with 10 additions and 2 deletions
|
@ -39,6 +39,8 @@
|
||||||
#define DISTRHO_UI_FILE_BROWSER 1
|
#define DISTRHO_UI_FILE_BROWSER 1
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
|
#define DISTRHO_UI_DEFAULT_WIDTH 1228
|
||||||
|
#define DISTRHO_UI_DEFAULT_HEIGHT 666
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS + 10
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS + 10
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
#define DISTRHO_UI_FILE_BROWSER 1
|
#define DISTRHO_UI_FILE_BROWSER 1
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
|
#define DISTRHO_UI_DEFAULT_WIDTH 1228
|
||||||
|
#define DISTRHO_UI_DEFAULT_HEIGHT 666
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
#define DISTRHO_UI_FILE_BROWSER 1
|
#define DISTRHO_UI_FILE_BROWSER 1
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
|
#define DISTRHO_UI_DEFAULT_WIDTH 1228
|
||||||
|
#define DISTRHO_UI_DEFAULT_HEIGHT 666
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
#define DISTRHO_PLUGIN_IS_SYNTH 0
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
||||||
|
|
|
@ -39,6 +39,8 @@
|
||||||
#define DISTRHO_UI_FILE_BROWSER 1
|
#define DISTRHO_UI_FILE_BROWSER 1
|
||||||
#define DISTRHO_UI_USE_NANOVG 1
|
#define DISTRHO_UI_USE_NANOVG 1
|
||||||
#define DISTRHO_UI_USER_RESIZABLE 1
|
#define DISTRHO_UI_USER_RESIZABLE 1
|
||||||
|
#define DISTRHO_UI_DEFAULT_WIDTH 1228
|
||||||
|
#define DISTRHO_UI_DEFAULT_HEIGHT 666
|
||||||
#endif
|
#endif
|
||||||
#define DISTRHO_PLUGIN_IS_SYNTH 1
|
#define DISTRHO_PLUGIN_IS_SYNTH 1
|
||||||
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
#define DISTRHO_PLUGIN_NUM_INPUTS CARDINAL_NUM_AUDIO_INPUTS
|
||||||
|
|
|
@ -339,7 +339,7 @@ class CardinalUI : public CardinalBaseUI,
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CardinalUI()
|
CardinalUI()
|
||||||
: CardinalBaseUI(1228, 666)
|
: CardinalBaseUI(DISTRHO_UI_DEFAULT_WIDTH, DISTRHO_UI_DEFAULT_HEIGHT)
|
||||||
{
|
{
|
||||||
Window& window(getWindow());
|
Window& window(getWindow());
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ public:
|
||||||
setGeometryConstraints(648 * scaleFactor, 538 * scaleFactor);
|
setGeometryConstraints(648 * scaleFactor, 538 * scaleFactor);
|
||||||
|
|
||||||
if (scaleFactor != 1.0)
|
if (scaleFactor != 1.0)
|
||||||
setSize(1228 * scaleFactor, 666 * scaleFactor);
|
setSize(DISTRHO_UI_DEFAULT_WIDTH * scaleFactor, DISTRHO_UI_DEFAULT_HEIGHT * scaleFactor);
|
||||||
|
|
||||||
rack::contextSet(context);
|
rack::contextSet(context);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue