free-audio / clap

Audio Plugin API
https://cleveraudio.org/
MIT License
1.78k stars 100 forks source link

On-the-fly DPI changes support? #396

Open ofsjoerdk opened 6 months ago

ofsjoerdk commented 6 months ago

Hi!

Playing around with reaper I found that system dpi settings are only applied when the plugin gui is first opened. That matches the description over here https://github.com/free-audio/clap/blob/main/include/clap/ext/gui.h, so i guess that's the way it's supposed to work.

The way vst3 does it is to notify the plugin each time the system DPI changes. For single monitor setups that's not a big deal, but for multiple monitors with different DPI scaling on each one I think it's definately valuable. Prevents the user from having the close and reopen the plugin gui when dragging between monitors. Would it be possible to add this feature?