Skip to content

Commit 2ceaa45

Browse files
committed
Alternative way to auto-scale
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2a6d8d7 commit 2ceaa45

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

plugins/3BandEQ/DistrhoUI3BandEQ.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Art = DistrhoArtwork3BandEQ;
2424
// -----------------------------------------------------------------------
2525

2626
DistrhoUI3BandEQ::DistrhoUI3BandEQ()
27-
: UI(Art::backgroundWidth, Art::backgroundHeight),
27+
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
2828
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
2929
fAboutWindow(this)
3030
{
@@ -109,9 +109,6 @@ DistrhoUI3BandEQ::DistrhoUI3BandEQ()
109109

110110
// set default values
111111
programLoaded(0);
112-
113-
// automatically-scale
114-
setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true);
115112
}
116113

117114
// -----------------------------------------------------------------------

plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Art = DistrhoArtwork3BandSplitter;
2424
// -----------------------------------------------------------------------
2525

2626
DistrhoUI3BandSplitter::DistrhoUI3BandSplitter()
27-
: UI(Art::backgroundWidth, Art::backgroundHeight),
27+
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
2828
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
2929
fAboutWindow(this)
3030
{
@@ -109,9 +109,6 @@ DistrhoUI3BandSplitter::DistrhoUI3BandSplitter()
109109

110110
// set default values
111111
programLoaded(0);
112-
113-
// automatically-scale
114-
setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true);
115112
}
116113

117114
// -----------------------------------------------------------------------

plugins/PingPongPan/DistrhoUIPingPongPan.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Art = DistrhoArtworkPingPongPan;
2424
// -----------------------------------------------------------------------
2525

2626
DistrhoUIPingPongPan::DistrhoUIPingPongPan()
27-
: UI(Art::backgroundWidth, Art::backgroundHeight),
27+
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
2828
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR),
2929
fAboutWindow(this)
3030
{
@@ -62,9 +62,6 @@ DistrhoUIPingPongPan::DistrhoUIPingPongPan()
6262

6363
// set default values
6464
programLoaded(0);
65-
66-
// automatically-scale
67-
setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true);
6865
}
6966

7067
// -----------------------------------------------------------------------

0 commit comments

Comments
 (0)