Browse Source

VST: workaround for a Wavelab bug.

tags/2021-05-28
jules 14 years ago
parent
commit
35da7fe473
2 changed files with 8 additions and 2 deletions
  1. +7
    -0
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm
  2. +1
    -2
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 7
- 0
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm View File

@@ -89,6 +89,13 @@ void* attachComponentToWindowRef (Component* comp, void* windowRef)
comp->addToDesktop (ComponentPeer::windowIgnoresKeyPresses, parentView);
#endif
// (this workaround is because Wavelab provides a zero-size parent view..)
if ([parentView frame].size.height == 0)
[((NSView*) comp->getWindowHandle()) setFrameOrigin: NSZeroPoint];
comp->setVisible (true);
comp->toFront (false);
[[parentView window] setAcceptsMouseMovedEvents: YES];
return parentView;
#else


+ 1
- 2
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -1230,8 +1230,7 @@ public:
if (peer != nullptr)
{
const Point<int> pos (getScreenPosition() - peer->getScreenPosition());
peer->addMaskedRegion (pos.getX(), pos.getY(), getWidth(), getHeight());
peer->addMaskedRegion (getScreenBounds() - peer->getScreenPosition());
#if JUCE_LINUX
if (pluginWindow != 0)


Loading…
Cancel
Save