aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorAdam Badawy <adambada@buffalo.edu>2015-10-27 00:33:48 -0400
committerAdam Badawy <adambada@buffalo.edu>2015-10-27 00:33:48 -0400
commit4f8095816ee43e99fc131375817033bd75c7288e (patch)
tree81e19f3077ddcb2f44d070ccc41b3f2b46e928ed /src/api
parent23a51040982358b6de24b3a3f70c8cbd4c311543 (diff)
downloadglutin-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.rs2
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),