diff options
Diffstat (limited to 'distrho/src/DistrhoUIInternal.hpp')
-rw-r--r-- | distrho/src/DistrhoUIInternal.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp index 26f1de8f..648694c7 100644 --- a/distrho/src/DistrhoUIInternal.hpp +++ b/distrho/src/DistrhoUIInternal.hpp @@ -255,6 +255,9 @@ public: void setSize(const uint width, const uint height) { + DISTRHO_SAFE_ASSERT_RETURN(fUi != nullptr,); + + fUi->setSize(width, height); glWindow.setSize(width, height); } @@ -283,13 +286,13 @@ protected: private: // ------------------------------------------------------------------- - // DGL Application and Window for this plugin + // DGL Application and Window for this widget DGL::App glApp; DGL::Window glWindow; // ------------------------------------------------------------------- - // private members accessed by DistrhoUI classes + // Widget and DistrhoUI data UI* const fUi; UI::PrivateData* const fData; |