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 0bdd30f commit 5e9014b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions plugins/MVerb/DistrhoUIMVerb.cpp
@@ -1,7 +1,7 @@
/*
* DISTRHO MVerb, a DPF'ied MVerb.
* Copyright (c) 2010 Martin Eastwood
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2021 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
Expand All @@ -28,7 +28,7 @@ using DGL::Color;
// -----------------------------------------------------------------------

DistrhoUIMVerb::DistrhoUIMVerb()
: UI(Art::backgroundWidth, Art::backgroundHeight),
: UI(Art::backgroundWidth, Art::backgroundHeight, true),
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR)
{
// text
Expand Down Expand Up @@ -122,9 +122,6 @@ DistrhoUIMVerb::DistrhoUIMVerb()

// set initial values
programLoaded(0);

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

DistrhoUIMVerb::~DistrhoUIMVerb()
Expand Down

0 comments on commit 5e9014b

Please sign in to comment.