diff options
author | Adam Badawy <adambada@buffalo.edu> | 2015-10-27 00:33:48 -0400 |
---|---|---|
committer | Adam Badawy <adambada@buffalo.edu> | 2015-10-27 00:33:48 -0400 |
commit | 4f8095816ee43e99fc131375817033bd75c7288e (patch) | |
tree | 81e19f3077ddcb2f44d070ccc41b3f2b46e928ed /src/api | |
parent | 23a51040982358b6de24b3a3f70c8cbd4c311543 (diff) | |
download | glutin-4f8095816ee43e99fc131375817033bd75c7288e.tar.gz glutin-4f8095816ee43e99fc131375817033bd75c7288e.zip |
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.
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/x11/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs index 7ad2951..c8c0bf7 100644 --- a/src/api/x11/window.rs +++ b/src/api/x11/window.rs @@ -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), |