From 7652cc58607bc03bbb57f75ad418f8ec87b11541 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 15 Jan 2015 20:20:52 +0100 Subject: Blind attempt to fix the OS/X build --- src/osx/monitor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/osx/monitor.rs') 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 { 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 } -- cgit v1.2.3