t-sin / soyboy-sp.vst3

Make some chiptune with penguins.
https://t-sin.github.io/soyboy-sp.vst3/
GNU General Public License v3.0
86 stars 2 forks source link

Wrong window size with high DPI screens #2

Closed t-sin closed 2 years ago

t-sin commented 2 years ago

On my high-DPI Ubuntu 20.04 laptop machine, SoyBoy's plugin window content is scaled too large like this.

soyboy-high-dpi

To support high DPI screens, SoyBoy implements IPlugViewContentScaleSupport. The value passed by IPlugViewContentScaleSupport::setContentScaleFactor() and the value get from the window actually created are different. In the case of my laptop, IPlugView... value is 1.0 but actual value is 1.6666666666666667.