Skip to content

Commit

Permalink
Alternative way to auto-scale
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Aug 14, 2021
1 parent 2a6d8d7 commit 2ceaa45
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/3BandEQ/DistrhoUI3BandEQ.cpp
Expand Up @@ -24,7 +24,7 @@ namespace Art = DistrhoArtwork3BandEQ;
// -----------------------------------------------------------------------

DistrhoUI3BandEQ::DistrhoUI3BandEQ()
: UI(Art::backgroundWidth, Art::backgroundHeight),
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
fAboutWindow(this)
{
Expand Down Expand Up @@ -109,9 +109,6 @@ DistrhoUI3BandEQ::DistrhoUI3BandEQ()

// set default values
programLoaded(0);

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

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp
Expand Up @@ -24,7 +24,7 @@ namespace Art = DistrhoArtwork3BandSplitter;
// -----------------------------------------------------------------------

DistrhoUI3BandSplitter::DistrhoUI3BandSplitter()
: UI(Art::backgroundWidth, Art::backgroundHeight),
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
fAboutWindow(this)
{
Expand Down Expand Up @@ -109,9 +109,6 @@ DistrhoUI3BandSplitter::DistrhoUI3BandSplitter()

// set default values
programLoaded(0);

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

// -----------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions plugins/PingPongPan/DistrhoUIPingPongPan.cpp
Expand Up @@ -24,7 +24,7 @@ namespace Art = DistrhoArtworkPingPongPan;
// -----------------------------------------------------------------------

DistrhoUIPingPongPan::DistrhoUIPingPongPan()
: UI(Art::backgroundWidth, Art::backgroundHeight),
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
fAboutWindow(this)
{
Expand Down Expand Up @@ -62,9 +62,6 @@ DistrhoUIPingPongPan::DistrhoUIPingPongPan()

// set default values
programLoaded(0);

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

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

0 comments on commit 2ceaa45

Please sign in to comment.