aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Badawy <adambada@buffalo.edu>2015-10-25 21:47:47 -0400
committerAdam Badawy <adambada@buffalo.edu>2015-10-25 21:52:20 -0400
commit918dc6799269cc36268d4f71431344315a213ccb (patch)
tree7e71fd6456268c6f14d32e7c4422148e96c06f17 /src
parent188b8f5c081011e6a2dfe7b0ff9d72e7a0bb2566 (diff)
downloadglutin-918dc6799269cc36268d4f71431344315a213ccb.tar.gz
glutin-918dc6799269cc36268d4f71431344315a213ccb.zip
Fix issue #582
I switched `vsyncstart` and `vdisplay` again, as per the discussion on issue #582.
Diffstat (limited to 'src')
-rw-r--r--src/api/x11/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index 0196f67..8ab87de 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -325,7 +325,7 @@ impl Window {
let mode_to_switch_to = if window_attrs.monitor.is_some() {
let matching_mode = (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.vsyncstart == dimensions.1 as u16);
+ }).find(|m| m.hdisplay == dimensions.0 as u16 && m.vdisplay == dimensions.1 as u16);
if let Some(matching_mode) = matching_mode {
Some(matching_mode)
@@ -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.vsyncstart == dimensions.1 as u16);
+ }).find(|m| m.hdisplay >= dimensions.0 as u16 && m.vdisplay == dimensions.1 as u16);
match m {
Some(m) => Some(m),