|
|
@@ -46,13 +46,18 @@ PluginWindow& UI::PrivateData::createNextWindow(UI* const ui, const uint width, |
|
|
|
/* ------------------------------------------------------------------------------------------------------------ |
|
|
|
* UI */ |
|
|
|
|
|
|
|
UI::UI(const uint width, const uint height) |
|
|
|
UI::UI(const uint width, const uint height, const bool automaticallyScale) |
|
|
|
: UIWidget(UI::PrivateData::createNextWindow(this, width, height)), |
|
|
|
uiData(UI::PrivateData::s_nextPrivateData) |
|
|
|
{ |
|
|
|
#if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI |
|
|
|
if (width > 0 && height > 0) |
|
|
|
{ |
|
|
|
Widget::setSize(width, height); |
|
|
|
|
|
|
|
if (automaticallyScale) |
|
|
|
setGeometryConstraints(width, height, true, true); |
|
|
|
} |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|