Browse Source

Fix UI::getBundlePath() for VST2

pull/357/head
falkTX 3 years ago
parent
commit
7b3b7bacf5
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      distrho/src/DistrhoPluginVST2.cpp
  2. +1
    -0
      distrho/src/DistrhoUIInternal.hpp

+ 2
- 2
distrho/src/DistrhoPluginVST2.cpp View File

@@ -189,7 +189,7 @@ public:
sendNoteCallback,
setSizeCallback,
nullptr, // TODO file request
nullptr,
d_nextBundlePath,
plugin->getInstancePointer(),
scaleFactor)
# if !DISTRHO_PLUGIN_HAS_EXTERNAL_UI
@@ -705,7 +705,7 @@ public:
else
{
UIExporter tmpUI(nullptr, 0, fPlugin.getSampleRate(),
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, d_nextBundlePath,
fPlugin.getInstancePointer(), fLastScaleFactor);
fVstRect.right = tmpUI.getWidth();
fVstRect.bottom = tmpUI.getHeight();


+ 1
- 0
distrho/src/DistrhoUIInternal.hpp View File

@@ -62,6 +62,7 @@ public:
uiData(new UI::PrivateData())
{
uiData->sampleRate = sampleRate;
uiData->bundlePath = bundlePath != nullptr ? strdup(bundlePath) : nullptr;
uiData->dspPtr = dspPtr;

uiData->bgColor = bgColor;


Loading…
Cancel
Save