emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.01k stars 97 forks source link

Add support for High-DPI displays #207

Closed parasyte closed 4 years ago

parasyte commented 4 years ago

I created an example for pixels that uses minifb as a window manager: https://github.com/parasyte/pixels/tree/example/minimal-minifb/examples/minimal-minifb

Unfortunately it draws incorrectly on macOS with a retina display because the window is created with a scaling factor (320x240 is requested, but the window's physical size is 640x480) and the window reports its size in logical units. There is no way to query the scaling factor with minifb to correct it.

parasyte commented 4 years ago

I see this is a duplicate of #202