[][src]Function glutin::dpi::validate_hidpi_factor

pub fn validate_hidpi_factor(dpi_factor: f64) -> bool

Checks that the DPI factor is a normal positive f64.

All functions that take a DPI factor assert that this will return true. If you're sourcing DPI factors from anywhere other than winit, it's recommended to validate them using this function before passing them to winit; otherwise, you risk panics.