From bd892f8d1135414ad62fb7addc4b822e3ef4e3a6 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 22 Aug 2014 17:49:10 +0100 Subject: [PATCH] Update DPF --- dpf | 2 +- plugins/MVerb/DistrhoUIMVerb.cpp | 3 +++ plugins/MVerb/DistrhoUIMVerb.hpp | 13 ------------- 3 files changed, 4 insertions(+), 14 deletions(-) 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/MVerb/DistrhoUIMVerb.cpp b/plugins/MVerb/DistrhoUIMVerb.cpp index 08e3d56..fca4df9 100644 --- a/plugins/MVerb/DistrhoUIMVerb.cpp +++ b/plugins/MVerb/DistrhoUIMVerb.cpp @@ -30,6 +30,9 @@ using DGL::Color; DistrhoUIMVerb::DistrhoUIMVerb() : UI() { + // set UI size + setSize(DistrhoArtworkMVerb::backgroundWidth, DistrhoArtworkMVerb::backgroundHeight); + // background fImgBackground = Image(DistrhoArtworkMVerb::backgroundData, DistrhoArtworkMVerb::backgroundWidth, DistrhoArtworkMVerb::backgroundHeight, GL_BGR); diff --git a/plugins/MVerb/DistrhoUIMVerb.hpp b/plugins/MVerb/DistrhoUIMVerb.hpp index 6976449..46e8ed1 100644 --- a/plugins/MVerb/DistrhoUIMVerb.hpp +++ b/plugins/MVerb/DistrhoUIMVerb.hpp @@ -44,19 +44,6 @@ public: ~DistrhoUIMVerb() override; protected: - // ------------------------------------------------------------------- - // Information - - uint d_getWidth() const noexcept override - { - return DistrhoArtworkMVerb::backgroundWidth; - } - - uint d_getHeight() const noexcept override - { - return DistrhoArtworkMVerb::backgroundHeight; - } - // ------------------------------------------------------------------- // DSP Callbacks