Scaling good practice


#1

Hi Guys,

I would like to add whole UI scaling to my plugin and I’m wondering if I should use
Desktop::setGlobalScaleFactor or setTransform(juce::AffineTransform::scale(scaling));

The good thing with setGlobalScaleFactor is that it work ou of the box while AffineTransform need some modification as I have some fixed coordinate in my plugin.
I see that juce own impl in VST uses AffineTransform and I’m wondering what was the rationale for this to be used instead of setGlobalScaleFactor.

Thanks !