mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Added output to get_name for x11 monitors
This commit is contained in:
@@ -35,7 +35,8 @@ pub fn get_primary_monitor() -> MonitorID {
|
||||
|
||||
impl MonitorID {
|
||||
pub fn get_name(&self) -> Option<String> {
|
||||
Some("<Unknown>".to_string())
|
||||
let MonitorID(screen_num) = *self;
|
||||
Some(format!("Monitor #{}", screen_num))
|
||||
}
|
||||
|
||||
pub fn get_dimensions(&self) -> (uint, uint) {
|
||||
|
||||
Reference in New Issue
Block a user