Add monitor support for win32

This commit is contained in:
Tomaka17 2014-07-31 10:52:05 +02:00
parent db8955a9d8
commit d9d293667a
6 changed files with 153 additions and 15 deletions

View file

@ -258,6 +258,7 @@ pub fn get_primary_monitor() -> MonitorID {
impl MonitorID {
/// Returns a human-readable name of the monitor.
pub fn get_name(&self) -> Option<String> {
Some("<Unknown>".to_string())
let &MonitorID(ref id) = self;
id.get_name()
}
}