Resvg4JUCE
Resvg4JUCE copied to clipboard
Wrong bounds used to detect display
Hi,
I think using getBounds().getCentre() to find the current display of the app might be wrong, getScreenBounds().getCentre() should be used instead https://github.com/JanosGit/Resvg4JUCE/compare/master...Riuzakiii:master.
I've tested this code with the Standalone version of a VST plugin, I now have the right scale factor for each of my displays.
Thank you again for bringing that up. This sounds quite reasonable to me. I'd like to give the proposed change a test in my projects before merging it and I probably won't find a lot of time for that this week, but I'll try to have a look at it soon!