denovodavid / glamour

💎 Rust & OpenGL Rendering Project
https://glamour.davidhol.land
0 stars 0 forks source link

DPI Scaling is not reported exactly #8

Open denovodavid opened 4 years ago

denovodavid commented 4 years ago

Winit doesn't seem to able to return a floating point scaling value. So, when setting the resolution, unless the scaling factor is 1 or 2, for example, then the physical resolution will be incorrect.

I generally have my scaling at 4/3 = 1.333334, so the scaling factor returns 1 incorrectly.