gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 129 forks source link

Plotters canvas scales incorrectly with hdpi awareness enabled #208

Open evshiron opened 3 years ago

gabdube commented 3 years ago

Will look into this.

HareInWeed commented 2 years ago

I think #210 might fix the issue, but it causes more problem. With some experiments, I found that layouts will be messed up if I enable the high-dpi feature and hdpi awareness at the same time. Maybe inlining high_dpi::physical_to_logical in &PlottersBackend::get_size is a better way to go.