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

Set correct scale factor #7

Closed t-sin closed 2 years ago

t-sin commented 2 years ago

This PR tries to fix https://github.com/t-sin/soyboy-sp.vst3/issues/2 .

Tested on:

If calculated scale factor it not 1.0 in the environment (depends on dots per inch value?), the value egui::Context::pixels_per_point is automatically changed but it may be wrong. So it is neccessary to reset manually this value to 1.0 by egui::Context::set_pixels_per_point() .

This PR fixes the issue https://github.com/t-sin/soyboy-sp.vst3/issues/2 but high DPI problems may occur in the future.