Browse Source

Alternative way to set auto-scale

Signed-off-by: falkTX <falktx@falktx.com>
pull/3/head
falkTX 3 years ago
parent
commit
5e9014b13d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 6 deletions
  1. +1
    -1
      dpf
  2. +2
    -5
      plugins/MVerb/DistrhoUIMVerb.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit b88e92c522fe0fe8e83a6084d0bfdaa000e0c9bf
Subproject commit 091c919cd6c030b0fb2e61fcd87851a6662b62e8

+ 2
- 5
plugins/MVerb/DistrhoUIMVerb.cpp View File

@@ -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
@@ -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
@@ -122,9 +122,6 @@ DistrhoUIMVerb::DistrhoUIMVerb()

// set initial values
programLoaded(0);

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

DistrhoUIMVerb::~DistrhoUIMVerb()


Loading…
Cancel
Save