antonok-edm / ampli-Fe

Fully cross-platform VST2 plugin with a custom editor UI, written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI doesn't work correctly in Bitwig under MacOS

sebastianpfluegelmeier opened this issue · comments

Screenshot 2022-02-11 at 19 27 35

UI looks like this and the knob doesn't turn on MacOS 11.6 on Bitwig 4.1.6

i just realized the knob actually turns, you just have to click where it would be if the scaling was correct (so somewhere in the right lower corner in the white area).

Sadly I haven't been able to find any useful developer documentation on working with macOS hi-DPI scaling. I think last time I tried, the window was upscaled to 2x resolution and I couldn't figure out what to do to draw at native scale.

Maybe something's changed in wgpu or elsewhere since then to make it draw smaller instead of upscaling by default? If so, vst_window just needs a way to detect the window scale and adjust drawing code accordingly.

i did a bit of research and found this here. could this have introduced the issue?
gfx-rs/wgpu#1874