Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Alternative way to set auto-scale
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Aug 14, 2021
1 parent e2a02f8 commit 18d6259
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dpf
5 changes: 1 addition & 4 deletions plugins/AmplitudeImposer/DistrhoUIAmplitudeImposer.cpp
Expand Up @@ -32,7 +32,7 @@ namespace Art = DistrhoArtworkAmplitudeImposer;
// -----------------------------------------------------------------------

DistrhoUIAmplitudeImposer::DistrhoUIAmplitudeImposer()
: UI(Art::backWidth, Art::backHeight),
: UI(Art::backWidth, Art::backHeight, true),
fImgBackground(Art::backData, Art::backWidth, Art::backHeight, kImageFormatGrayscale)
{
// sliders
Expand All @@ -54,9 +54,6 @@ DistrhoUIAmplitudeImposer::DistrhoUIAmplitudeImposer()

// set initial values
programLoaded(0);

// automatically-scale
setGeometryConstraints(Art::backWidth, Art::backHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/CycleShifter/DistrhoUICycleShifter.cpp
Expand Up @@ -32,7 +32,7 @@ namespace Art = DistrhoArtworkCycleShifter;
// -----------------------------------------------------------------------

DistrhoUICycleShifter::DistrhoUICycleShifter()
: UI(Art::backWidth, Art::backHeight),
: UI(Art::backWidth, Art::backHeight, true),
fImgBackground(Art::backData, Art::backWidth, Art::backHeight, kImageFormatGrayscale)
{
// sliders
Expand All @@ -54,9 +54,6 @@ DistrhoUICycleShifter::DistrhoUICycleShifter()

// set initial values
programLoaded(0);

// automatically-scale
setGeometryConstraints(Art::backWidth, Art::backHeight, true, true);
}

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/SoulForce/DistrhoUISoulForce.cpp
Expand Up @@ -32,7 +32,7 @@ namespace Art = DistrhoArtworkSoulForce;
// -----------------------------------------------------------------------

DistrhoUISoulForce::DistrhoUISoulForce()
: UI(Art::backgroundWidth, Art::backgroundHeight),
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
fImgLedOff(Art::led_offData, Art::led_offWidth, Art::led_offHeight, kImageFormatBGR),
fImgLedOn(Art::led_onData, Art::led_onWidth, Art::led_onHeight, kImageFormatBGR),
Expand Down Expand Up @@ -76,9 +76,6 @@ DistrhoUISoulForce::DistrhoUISoulForce()

// set initial values
programLoaded(0);

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

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

0 comments on commit 18d6259

Please sign in to comment.