mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Add monitor support for win32
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user