Browse Source

Fix vst3 host-side resize after last commits

Signed-off-by: falkTX <falktx@falktx.com>
pull/357/head
falkTX 3 years ago
parent
commit
d48c7ffc0f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 10 additions and 3 deletions
  1. +3
    -3
      distrho/src/DistrhoUIInternal.hpp
  2. +7
    -0
      distrho/src/DistrhoUIPrivateData.hpp

+ 3
- 3
distrho/src/DistrhoUIInternal.hpp View File

@@ -286,10 +286,10 @@ public:
#ifdef DISTRHO_PLUGIN_TARGET_VST3
void setWindowSizeForVST3(const uint width, const uint height)
{
# if DISTRHO_PLUGIN_HAS_EXTERNAL_UI
ui->setSize(width, height);
# if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI
// NOTE in external uis, the ui and window refer to the same object
uiData->window->setSize(width, height);
# else
uiData->window->setSizeForVST3(width, height);
# endif
}
#endif


+ 7
- 0
distrho/src/DistrhoUIPrivateData.hpp View File

@@ -231,6 +231,13 @@ public:
puglBackendEnter(pData->view);
}

#ifdef DISTRHO_PLUGIN_TARGET_VST3
void setSizeForVST3(const uint width, const uint height)
{
puglSetWindowSize(pData->view, width, height);
}
#endif

protected:
void onFocus(const bool focus, const DGL_NAMESPACE::CrossingMode mode) override
{


Loading…
Cancel
Save