We are adding plugin hosting to our non-JUCE GUI application by using JUCE as a shared library.
Everything working nicely except that on Windows, plugin UIs don’t respond to desktop scaling.
I tried fixing this by using
ScopedDPIAwarenessDisabler to disable DPI awareness before creating the plugin editor and window.
However, this does not work because
setDPIAwareness() in juce_win32_Windowing.cpp checks
JUCEApplicationBase::isStandaloneApp() before doing its thing.
If I comment out the check, then
ScopedDPIAwarenessDisabler works and I get correctly scaled UIs.
So my question: what is the purpose of the check for standalone? Is it actually needed? Is commenting it out likely to cause any issues?