mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Allow any mode larger than requested dimensions
We were previously allowing only fullscreen modes which were exactly as tall as the requested dimensions, perhaps erroneously.
This commit is contained in:
@@ -333,7 +333,7 @@ impl Window {
|
||||
} else {
|
||||
let m = (0 .. mode_num).map(|i| {
|
||||
let m: ffi::XF86VidModeModeInfo = ptr::read(*modes.offset(i as isize) as *const _); m
|
||||
}).find(|m| m.hdisplay >= dimensions.0 as u16 && m.vdisplay == dimensions.1 as u16);
|
||||
}).find(|m| m.hdisplay >= dimensions.0 as u16 && m.vdisplay >= dimensions.1 as u16);
|
||||
|
||||
match m {
|
||||
Some(m) => Some(m),
|
||||
|
||||
Reference in New Issue
Block a user