diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-31 10:52:05 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-31 11:13:40 +0200 |
commit | d9d293667a7b5934ba923f578ffbfd2c12d121be (patch) | |
tree | 6ac0c7ed6bb98b8eeda249141afac0928fdd0cec /src/x11 | |
parent | db8955a9d85d7e44e63dd3fd7634230bc1aed635 (diff) | |
download | glutin-d9d293667a7b5934ba923f578ffbfd2c12d121be.tar.gz glutin-d9d293667a7b5934ba923f578ffbfd2c12d121be.zip |
Add monitor support for win32
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/mod.rs | 6 |
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> |