I’ve just upgraded from JUCE 6.0.4 to 6.0.8 and the standalone AUv3 is displaying in a very different way.
When the app first opens on JUCE 6.0.8 and brings up the “Audio input is muted to avoid feedback loop” bar, the standalone AUv3 doesn’t seem to be aware of screen size. Previously it would just size to the full screen and whatever size set In setSize() didn’t matter. Please see screenshots for the comparison (the ones with the default JUCE background colour around the grey are the ones using new JUCE).
Similarly fillAll() has changed behaviour and doesn’t fill the whole screen.
My setSize() code is as follows:
ratio = 1740.0 / 470.0; setResizeLimits(1740.0 * 0.25, 1740.0 * 0.25 / ratio, 1740.0, 1740.0 / ratio); getConstrainer()->setFixedAspectRatio(ratio); setSize(1740.0 * 0.7, 1740.0 * 0.7 / ratio);
Is there a way to get back the old behaviour as it meant that no changes were needed between desktop and iOS builds? I haven’t played with it much but I haven’t found a way to get it to display nicely yet.
Does anyone know where the change is in the JUCE code?
This now works but getMainDisplay() depreciated so ideally there would be a better solution -
juce::Rectangle<int> r = juce::Desktop::getInstance().getDisplays().getMainDisplay().userArea; setSize(r.getWidth(), r.getHeight());
And this doesn’t work: