aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-07-31 10:52:05 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-07-31 11:13:40 +0200
commitd9d293667a7b5934ba923f578ffbfd2c12d121be (patch)
tree6ac0c7ed6bb98b8eeda249141afac0928fdd0cec /src/x11
parentdb8955a9d85d7e44e63dd3fd7634230bc1aed635 (diff)
downloadglutin-d9d293667a7b5934ba923f578ffbfd2c12d121be.tar.gz
glutin-d9d293667a7b5934ba923f578ffbfd2c12d121be.zip
Add monitor support for win32
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 9d08d4a..61488a1 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -24,6 +24,12 @@ pub fn get_primary_monitor() -> MonitorID {
unimplemented!()
}
+impl MonitorID {
+ pub fn get_name(&self) -> Option<String> {
+ Some("<Unknown>".to_string())
+ }
+}
+
impl Window {
pub fn new(dimensions: Option<(uint, uint)>, title: &str, hints: &Hints, _: Option<MonitorID>)
-> Result<Window, String>