Browse Source

Fix for temporary VST UI used for size

gh-pages
falkTX 10 years ago
parent
commit
e06cb84757
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      distrho/src/DistrhoPluginVST.cpp

+ 2
- 1
distrho/src/DistrhoPluginVST.cpp View File

@@ -406,9 +406,10 @@ public:
{ {
d_lastUiSampleRate = fPlugin.getSampleRate(); d_lastUiSampleRate = fPlugin.getSampleRate();


UIExporter tmpUI(nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr);
UIExporter tmpUI(nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, fPlugin.getInstancePointer());
fVstRect.right = tmpUI.getWidth(); fVstRect.right = tmpUI.getWidth();
fVstRect.bottom = tmpUI.getHeight(); fVstRect.bottom = tmpUI.getHeight();
tmpUI.quit();
} }
*(ERect**)ptr = &fVstRect; *(ERect**)ptr = &fVstRect;
ret = 1; ret = 1;


Loading…
Cancel
Save