From 2a6d8d75d3f15a69e6915ca4ca598056a0602074 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 14 Aug 2021 13:35:48 +0100 Subject: [PATCH] Automatically scale Signed-off-by: falkTX --- dpf | 2 +- plugins/3BandEQ/DistrhoUI3BandEQ.cpp | 3 +++ plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp | 3 +++ plugins/PingPongPan/DistrhoUIPingPongPan.cpp | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dpf b/dpf index 7688dd9..2e508c7 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 7688dd9602c5b770ff1b025c555d4f1f8edb7a2e +Subproject commit 2e508c73e95ef50947e3ed6e941b67b1f6b5bed4 diff --git a/plugins/3BandEQ/DistrhoUI3BandEQ.cpp b/plugins/3BandEQ/DistrhoUI3BandEQ.cpp index 1b39223..2597f62 100644 --- a/plugins/3BandEQ/DistrhoUI3BandEQ.cpp +++ b/plugins/3BandEQ/DistrhoUI3BandEQ.cpp @@ -109,6 +109,9 @@ DistrhoUI3BandEQ::DistrhoUI3BandEQ() // set default values programLoaded(0); + + // automatically-scale + setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true); } // ----------------------------------------------------------------------- diff --git a/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp b/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp index b5f197c..c8dd074 100644 --- a/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp +++ b/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp @@ -109,6 +109,9 @@ DistrhoUI3BandSplitter::DistrhoUI3BandSplitter() // set default values programLoaded(0); + + // automatically-scale + setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true); } // ----------------------------------------------------------------------- diff --git a/plugins/PingPongPan/DistrhoUIPingPongPan.cpp b/plugins/PingPongPan/DistrhoUIPingPongPan.cpp index faa2b13..326fb9b 100644 --- a/plugins/PingPongPan/DistrhoUIPingPongPan.cpp +++ b/plugins/PingPongPan/DistrhoUIPingPongPan.cpp @@ -62,6 +62,9 @@ DistrhoUIPingPongPan::DistrhoUIPingPongPan() // set default values programLoaded(0); + + // automatically-scale + setGeometryConstraints(Art::backgroundWidth, Art::backgroundHeight, true, true); } // -----------------------------------------------------------------------