diff --git a/dpf b/dpf index 10c98a1..03ddba5 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 10c98a170349b8bb4c47b2cb0aa228ef9c0dcb6a +Subproject commit 03ddba518eebedc08710123e3e3a83b18662da15 diff --git a/plugins/3BandEQ/DistrhoUI3BandEQ.cpp b/plugins/3BandEQ/DistrhoUI3BandEQ.cpp index a0e9280..98c5081 100644 --- a/plugins/3BandEQ/DistrhoUI3BandEQ.cpp +++ b/plugins/3BandEQ/DistrhoUI3BandEQ.cpp @@ -27,6 +27,9 @@ DistrhoUI3BandEQ::DistrhoUI3BandEQ() : UI(), fAboutWindow(this) { + // set UI size + setSize(DistrhoArtwork3BandEQ::backgroundWidth, DistrhoArtwork3BandEQ::backgroundHeight); + // background fImgBackground = Image(DistrhoArtwork3BandEQ::backgroundData, DistrhoArtwork3BandEQ::backgroundWidth, DistrhoArtwork3BandEQ::backgroundHeight, GL_BGR); diff --git a/plugins/3BandEQ/DistrhoUI3BandEQ.hpp b/plugins/3BandEQ/DistrhoUI3BandEQ.hpp index ddeb26b..05e06b9 100644 --- a/plugins/3BandEQ/DistrhoUI3BandEQ.hpp +++ b/plugins/3BandEQ/DistrhoUI3BandEQ.hpp @@ -45,19 +45,6 @@ public: DistrhoUI3BandEQ(); protected: - // ------------------------------------------------------------------- - // Information - - uint d_getWidth() const noexcept override - { - return DistrhoArtwork3BandEQ::backgroundWidth; - } - - uint d_getHeight() const noexcept override - { - return DistrhoArtwork3BandEQ::backgroundHeight; - } - // ------------------------------------------------------------------- // DSP Callbacks diff --git a/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp b/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp index c6e1976..98436c9 100644 --- a/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp +++ b/plugins/3BandSplitter/DistrhoUI3BandSplitter.cpp @@ -27,6 +27,9 @@ DistrhoUI3BandSplitter::DistrhoUI3BandSplitter() : UI(), fAboutWindow(this) { + // set UI size + setSize(DistrhoArtwork3BandSplitter::backgroundWidth, DistrhoArtwork3BandSplitter::backgroundHeight); + // background fImgBackground = Image(DistrhoArtwork3BandSplitter::backgroundData, DistrhoArtwork3BandSplitter::backgroundWidth, DistrhoArtwork3BandSplitter::backgroundHeight, GL_BGR); diff --git a/plugins/3BandSplitter/DistrhoUI3BandSplitter.hpp b/plugins/3BandSplitter/DistrhoUI3BandSplitter.hpp index decbeb6..5d44822 100644 --- a/plugins/3BandSplitter/DistrhoUI3BandSplitter.hpp +++ b/plugins/3BandSplitter/DistrhoUI3BandSplitter.hpp @@ -45,19 +45,6 @@ public: DistrhoUI3BandSplitter(); protected: - // ------------------------------------------------------------------- - // Information - - uint d_getWidth() const noexcept override - { - return DistrhoArtwork3BandSplitter::backgroundWidth; - } - - uint d_getHeight() const noexcept override - { - return DistrhoArtwork3BandSplitter::backgroundHeight; - } - // ------------------------------------------------------------------- // DSP Callbacks diff --git a/plugins/PingPongPan/DistrhoUIPingPongPan.cpp b/plugins/PingPongPan/DistrhoUIPingPongPan.cpp index 2f5e70e..70a672d 100644 --- a/plugins/PingPongPan/DistrhoUIPingPongPan.cpp +++ b/plugins/PingPongPan/DistrhoUIPingPongPan.cpp @@ -25,6 +25,9 @@ DistrhoUIPingPongPan::DistrhoUIPingPongPan() : UI(), fAboutWindow(this) { + // set UI size + setSize(DistrhoArtworkPingPongPan::backgroundWidth, DistrhoArtworkPingPongPan::backgroundHeight); + // background fImgBackground = Image(DistrhoArtworkPingPongPan::backgroundData, DistrhoArtworkPingPongPan::backgroundWidth, DistrhoArtworkPingPongPan::backgroundHeight, GL_BGR); diff --git a/plugins/PingPongPan/DistrhoUIPingPongPan.hpp b/plugins/PingPongPan/DistrhoUIPingPongPan.hpp index 2d65478..973ad45 100644 --- a/plugins/PingPongPan/DistrhoUIPingPongPan.hpp +++ b/plugins/PingPongPan/DistrhoUIPingPongPan.hpp @@ -42,19 +42,6 @@ public: DistrhoUIPingPongPan(); protected: - // ------------------------------------------------------------------- - // Information - - uint d_getWidth() const noexcept override - { - return DistrhoArtworkPingPongPan::backgroundWidth; - } - - uint d_getHeight() const noexcept override - { - return DistrhoArtworkPingPongPan::backgroundHeight; - } - // ------------------------------------------------------------------- // DSP Callbacks