diff options
author | falkTX <falktx@gmail.com> | 2014-05-17 03:23:00 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2014-05-17 03:23:00 +0100 |
commit | bd1d8bc19fa37d97e173917ff22b9f9fd175900e (patch) | |
tree | 6782f17a1b28103ed15e67f03d6513918f27c09a /distrho/src/DistrhoUIInternal.hpp | |
parent | 800eecbd5ad8f2562a986ecf686eb78d0455cd61 (diff) |
Misc
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; |