diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-10-27 07:30:28 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-10-27 07:30:28 +0100 |
commit | 391c42d17701d2cb30c71475d406bfa208d46e4a (patch) | |
tree | 918a3dd4fba43c16b47793501b663a8e18088ace | |
parent | 18d9b493d73a51ebd0d1b337eae109fab157bbd8 (diff) | |
parent | 22b434bf1da4c338ffd963aca1ae873307c5e5bb (diff) | |
download | glutin-391c42d17701d2cb30c71475d406bfa208d46e4a.tar.gz glutin-391c42d17701d2cb30c71475d406bfa208d46e4a.zip |
Merge pull request #76 from glennw/fix-x11-window-res
Only reject modes based on resolution when using fullscreen. This fixes ...
-rw-r--r-- | src/x11/window/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index d848096..d69feab 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -97,7 +97,7 @@ impl Window { best_mode = i; } }; - if best_mode == -1 { + if best_mode == -1 && builder.monitor.is_some() { return Err(format!("Could not find a suitable graphics mode")); } |