diff options
Diffstat (limited to 'src/osx/monitor.rs')
-rw-r--r-- | src/osx/monitor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osx/monitor.rs b/src/osx/monitor.rs index e23336f..912c02d 100644 --- a/src/osx/monitor.rs +++ b/src/osx/monitor.rs @@ -12,7 +12,7 @@ pub fn get_available_monitors() -> RingBuf<MonitorID> { display::CGGetActiveDisplayList(max_displays, &mut active_displays[0], &mut display_count); - for i in range(0u, display_count as uint) { + for i in range(0us, display_count as usize) { monitors.push_back(MonitorID(active_displays[i])); } } @@ -35,12 +35,12 @@ impl MonitorID { Some(format!("Monitor #{}", screen_num)) } - pub fn get_dimensions(&self) -> (uint, uint) { + pub fn get_dimensions(&self) -> (u32, u32) { let MonitorID(display_id) = *self; let dimension = unsafe { let height = display::CGDisplayPixelsHigh(display_id); let width = display::CGDisplayPixelsWide(display_id); - (width as uint, height as uint) + (width as u32, height as u32) }; dimension } |