[Rebased] [x11-backend] Retrieve DPI from Xft.dpi XResource (#824)

* [x11-backend] Retrieve DPI from Xft.dpi XResource

* Update CHANGELOG.md

* Update window.rs

* Update CHANGELOG.md
This commit is contained in:
mitchmindtree 2019-04-08 02:48:21 +10:00 committed by Victor Berger
parent 20b09c4514
commit 4515b77aa5
3 changed files with 29 additions and 5 deletions

View file

@ -477,7 +477,7 @@ impl Window {
///
/// ## Platform-specific
///
/// - **X11:** Can be overridden using the `WINIT_HIDPI_FACTOR` environment variable.
/// - **X11:** This respects Xft.dpi, and can be overridden using the `WINIT_HIDPI_FACTOR` environment variable.
/// - **Android:** Always returns 1.0.
#[inline]
pub fn get_hidpi_factor(&self) -> f64 {