mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -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 {
|
impl MonitorID {
|
||||||
pub fn get_name(&self) -> Option<String> {
|
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) {
|
pub fn get_dimensions(&self) -> (uint, uint) {
|
||||||
|
|||||||
Reference in New Issue
Block a user