mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Remove incorrect unreachable usage when guessing DPI factor (#592)
This commit is contained in:
committed by
GitHub
parent
ec393e4a90
commit
040d3f5d8b
@@ -872,7 +872,7 @@ unsafe fn init(
|
||||
}
|
||||
dpi_factor
|
||||
} else {
|
||||
unreachable!("There are no detected monitors, which should've already caused a panic.");
|
||||
return Err(CreationError::OsError(format!("No monitors were detected.")));
|
||||
};
|
||||
dpi_factor.unwrap_or_else(|| {
|
||||
util::get_cursor_pos()
|
||||
|
||||
Reference in New Issue
Block a user