mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fix typo in get_xft_dpi
This commit is contained in:
@@ -18,6 +18,7 @@ Unreleased` header.
|
|||||||
- On X11, fix a bug where focusing the window would panic.
|
- On X11, fix a bug where focusing the window would panic.
|
||||||
- On macOS, fix `refresh_rate_millihertz`.
|
- On macOS, fix `refresh_rate_millihertz`.
|
||||||
- On Wayland, disable Client Side Decorations when `wl_subcompositor` is not supported.
|
- On Wayland, disable Client Side Decorations when `wl_subcompositor` is not supported.
|
||||||
|
- On X11, fix `Xft.dpi` detection from Xresources.
|
||||||
|
|
||||||
# 0.29.4
|
# 0.29.4
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ impl XConnection {
|
|||||||
// Retrieve DPI from Xft.dpi property
|
// Retrieve DPI from Xft.dpi property
|
||||||
pub fn get_xft_dpi(&self) -> Option<f64> {
|
pub fn get_xft_dpi(&self) -> Option<f64> {
|
||||||
self.database()
|
self.database()
|
||||||
.get_string("Xfi.dpi", "")
|
.get_string("Xft.dpi", "")
|
||||||
.and_then(|s| f64::from_str(s).ok())
|
.and_then(|s| f64::from_str(s).ok())
|
||||||
}
|
}
|
||||||
pub fn get_output_info(
|
pub fn get_output_info(
|
||||||
|
|||||||
Reference in New Issue
Block a user