mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
This commit is contained in:
committed by
Victor Berger
parent
f457c6a0b8
commit
2467a997f4
@@ -22,7 +22,7 @@ pub fn calc_dpi_factor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// See http://xpra.org/trac/ticket/728 for more information.
|
// See http://xpra.org/trac/ticket/728 for more information.
|
||||||
if width_mm == 0 || width_mm == 0 {
|
if width_mm == 0 || height_mm == 0 {
|
||||||
warn!("XRandR reported that the display's 0mm in size, which is certifiably insane");
|
warn!("XRandR reported that the display's 0mm in size, which is certifiably insane");
|
||||||
return 1.0;
|
return 1.0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user