diff --git a/distrho/src/DistrhoUI.cpp b/distrho/src/DistrhoUI.cpp index 9e091e40..a52a9275 100644 --- a/distrho/src/DistrhoUI.cpp +++ b/distrho/src/DistrhoUI.cpp @@ -15,6 +15,7 @@ */ #include "DistrhoUIInternal.hpp" +#include "src/WidgetPrivateData.hpp" START_NAMESPACE_DISTRHO @@ -32,7 +33,7 @@ UI::UI(uint width, uint height) : UIWidget(*d_lastUiWindow), pData(new PrivateData()) { - fNeedsFullViewport = true; + ((UIWidget*)this)->pData->needsFullViewport = false; if (width > 0 && height > 0) setSize(width, height);