1
3rd Party Plugins - (fb2k) / Re: foo_vis_spectrum_analyzer
Last post by Defender -Anyway, I'm happy you are investigating. It's quite easy to spot when you put your scaling to 125% and display a 6ch peakmeter.I removed the rounding code. All math is done in DIP not pixels. If you think about it: rounding the values before giving them to Direct2D prevents it from choosing the correct pixel when it's time to create the final picture.
225 DPI with 7 bars and gauge gap of 1 DIP renders correctly now AFAICT.
Good to know it now renders correctly. Can you point me to the version/beta of your plugin that renders correctly with different windows scaling?
I attached a screenshot from the 0.8.0.0beta1 for windows scaling 225%, 6ch, barwidth 11, gauge gap 2, no legend. Should be using 6x11 + 5x2 = 76 pixels. Included in text is my calculation of the required panel width and underneath are actual panel widths being used for your plugin and the old peakmeter spectrum (both being 76px).
On the left is your plugin and on the right a peakmeter spectrum (which is not aware of windows scaling) with hardcoded barwidth 11 and gauge gap 2.
As you can clearly see 0.8.0.0beta1 does NOT render the intended peakmeter correctly since it makes the barwidth incorrectly 1px smaller.