Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Alternative way to auto-scale
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Aug 14, 2021
1 parent 81f91ec commit 59102c7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion dpf
5 changes: 1 addition & 4 deletions plugins/PowerJuice/PowerJuiceUI.cpp
Expand Up @@ -27,7 +27,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

PowerJuiceUI::PowerJuiceUI()
: UI(PowerJuiceArtwork::backgroundWidth, PowerJuiceArtwork::backgroundHeight),
: UI(PowerJuiceArtwork::backgroundWidth, PowerJuiceArtwork::backgroundHeight, true),
fAboutWindow(this),
dsp((PowerJuicePlugin*)getPluginInstancePointer())
{
Expand Down Expand Up @@ -101,9 +101,6 @@ PowerJuiceUI::PowerJuiceUI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(PowerJuiceArtwork::backgroundWidth, PowerJuiceArtwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/PowerJuiceX2/PowerJuiceX2UI.cpp
Expand Up @@ -27,7 +27,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

PowerJuiceX2UI::PowerJuiceX2UI()
: UI(PowerJuiceX2Artwork::backgroundWidth, PowerJuiceX2Artwork::backgroundHeight),
: UI(PowerJuiceX2Artwork::backgroundWidth, PowerJuiceX2Artwork::backgroundHeight, true),
fAboutWindow(this),
dsp((PowerJuiceX2Plugin*)getPluginInstancePointer())
{
Expand Down Expand Up @@ -101,9 +101,6 @@ PowerJuiceX2UI::PowerJuiceX2UI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(PowerJuiceX2Artwork::backgroundWidth, PowerJuiceX2Artwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/StutterJuice/StutterJuiceUI.cpp
Expand Up @@ -26,7 +26,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

StutterJuiceUI::StutterJuiceUI()
: UI(StutterJuiceArtwork::backgroundWidth, StutterJuiceArtwork::backgroundHeight),
: UI(StutterJuiceArtwork::backgroundWidth, StutterJuiceArtwork::backgroundHeight, true),
fAboutWindow(this)
{
// background
Expand Down Expand Up @@ -81,9 +81,6 @@ StutterJuiceUI::StutterJuiceUI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(StutterJuiceArtwork::backgroundWidth, StutterJuiceArtwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/TriggerJuice/TriggerJuiceUI.cpp
Expand Up @@ -27,7 +27,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

TriggerJuiceUI::TriggerJuiceUI()
: UI(TriggerJuiceArtwork::backgroundWidth, TriggerJuiceArtwork::backgroundHeight),
: UI(TriggerJuiceArtwork::backgroundWidth, TriggerJuiceArtwork::backgroundHeight, true),
fAboutWindow(this)
{
// background
Expand Down Expand Up @@ -98,9 +98,6 @@ TriggerJuiceUI::TriggerJuiceUI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(TriggerJuiceArtwork::backgroundWidth, TriggerJuiceArtwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/VectorJuice/VectorJuiceUI.cpp
Expand Up @@ -25,7 +25,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

VectorJuiceUI::VectorJuiceUI()
: UI(VectorJuiceArtwork::backgroundWidth, VectorJuiceArtwork::backgroundHeight),
: UI(VectorJuiceArtwork::backgroundWidth, VectorJuiceArtwork::backgroundHeight, true),
fAboutWindow(this)
{
// xy params
Expand Down Expand Up @@ -184,9 +184,6 @@ VectorJuiceUI::VectorJuiceUI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(VectorJuiceArtwork::backgroundWidth, VectorJuiceArtwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/WobbleJuice/WobbleJuiceUI.cpp
Expand Up @@ -23,7 +23,7 @@ START_NAMESPACE_DISTRHO
// -----------------------------------------------------------------------

WobbleJuiceUI::WobbleJuiceUI()
: UI(WobbleJuiceArtwork::backgroundWidth, WobbleJuiceArtwork::backgroundHeight),
: UI(WobbleJuiceArtwork::backgroundWidth, WobbleJuiceArtwork::backgroundHeight, true),
fAboutWindow(this)
{
// background
Expand Down Expand Up @@ -100,9 +100,6 @@ WobbleJuiceUI::WobbleJuiceUI()

// set default values
programLoaded(0);

// automatically-scale
setGeometryConstraints(WobbleJuiceArtwork::backgroundWidth, WobbleJuiceArtwork::backgroundHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down

0 comments on commit 59102c7

Please sign in to comment.