Skip to content

Commit 5e9014b

Browse files
committed
Alternative way to set auto-scale
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 0bdd30f commit 5e9014b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

plugins/MVerb/DistrhoUIMVerb.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DISTRHO MVerb, a DPF'ied MVerb.
33
* Copyright (c) 2010 Martin Eastwood
4-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
4+
* Copyright (C) 2015-2021 Filipe Coelho <falktx@falktx.com>
55
*
66
* This program is free software; you can redistribute it and/or
77
* modify it under the terms of the GNU General Public License as
@@ -28,7 +28,7 @@ using DGL::Color;
2828
// -----------------------------------------------------------------------
2929

3030
DistrhoUIMVerb::DistrhoUIMVerb()
31-
: UI(Art::backgroundWidth, Art::backgroundHeight),
31+
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
3232
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR)
3333
{
3434
// text
@@ -122,9 +122,6 @@ DistrhoUIMVerb::DistrhoUIMVerb()
122122

123123
// set initial values
124124
programLoaded(0);
125-
126-
// automatically-scale
127-
setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true);
128125
}
129126

130127
DistrhoUIMVerb::~DistrhoUIMVerb()

0 commit comments

Comments
 (0)