I’m trying to track down some issues I am seeing hosting certain VST plugins in Juce.
For instance all UAD VST plugins are drawing incorrectly, I have included an image from the AudioPluginHost showing a VST on the left and a correct AU on the right,
With the AU you can see the “menu bar” is at the bottom where it should be, the VST has got it drawn at the top which is wrong.
Unfortunately I don’t remember exactly why I added that. I think I’d recently discovered isFlipped, and was applying it in a few places to keep the JUCE coordinate space consistent with the platform coordinate space. However, given that the plugin views are ‘native’ rather than being JUCE components, they’ll expect a native coordinate space, so flipping this view is probably a bug. I remember trying a lot of different approaches to get editors displaying consistently, so it’s likely this is something I added as a test, but forgot to remove.
The linked commit message mentions a few different plugins that were fixed by the change. All of those plugins continue to work when disabling the isFlipped function, so I think it’s probably safe to remove. I can also confirm that removing the function fixes the layout problem in UAD VSTs.