Resvg4JUCE icon indicating copy to clipboard operation
Resvg4JUCE copied to clipboard

Wrong bounds used to detect display

Open kauwua opened this issue 3 years ago • 1 comments

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.

kauwua avatar Jun 03 '22 10:06 kauwua

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!

JanosGit avatar Jun 06 '22 20:06 JanosGit