Update the DPI module docs (#1349)

* Update the DPI module docs

* Fix HiDpiFactorChanged doc link

* Incorporate lokathor and icefox feedback

* Adjust documented desktop resolution range

* X11 is one of the reasons I use Windows

* Address DPI generics and float->int rounding

* Revise DPI value statement to better reflect best practices

* Address some of freya's feedback

* phrasing

* Rephrase X11 DPI stuff
This commit is contained in:
Osspial 2020-01-04 19:19:17 -05:00
parent 28b82fb9aa
commit 9b122c3804
2 changed files with 96 additions and 76 deletions

View file

@ -304,7 +304,7 @@ pub enum WindowEvent<'a> {
/// is pointed to by the `new_inner_size` reference. By default, this will contain the size suggested
/// by the OS, but it can be changed to any value.
///
/// For more information about DPI in general, see the [`dpi`](dpi/index.html) module.
/// For more information about DPI in general, see the [`dpi`](crate::dpi) module.
DpiChanged {
scale_factor: f64,
new_inner_size: &'a mut PhysicalSize<u32>,