Fix DPI with 0 width/hight reported by xorg (#544)
* Fix DPI with 0 width/hight reported by xorg * Add `WINIT_HIDPI_FACTOR` env variable It is now possible to override the DPI factor using the `WINIT_HIDPI_FACTOR` environment variable on X11. The changelog also has been updated to introduce all current changes made. * Add documentation for the environment variable * Fix nitpicks * Learning the alphabet * Panic with error message if DPI env var is <= 0
This commit is contained in:
parent
fd1a3eda1c
commit
bf413ecb83
3 changed files with 28 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
|||
- On X11, the `Moved` event is no longer sent when the window is resized without changing position.
|
||||
- `MouseCursor` and `CursorState` now implement `Default`.
|
||||
- `WindowBuilder::with_resizable` implemented for Windows.
|
||||
- On X11, if width or height is reported as 0, the DPI is now 1.0 instead of +inf.
|
||||
- On X11, the environment variable `WINIT_HIDPI_FACTOR` has been added for overriding DPI factor.
|
||||
|
||||
# Version 0.15.0 (2018-05-22)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue