aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx/monitor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/monitor.rs')
-rw-r--r--src/osx/monitor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osx/monitor.rs b/src/osx/monitor.rs
index 3fb1d74..e23336f 100644
--- a/src/osx/monitor.rs
+++ b/src/osx/monitor.rs
@@ -3,11 +3,11 @@ use std::collections::RingBuf;
pub struct MonitorID(u32);
-pub fn get_available_monitors() -> Vec<MonitorID> {
+pub fn get_available_monitors() -> RingBuf<MonitorID> {
let mut monitors = RingBuf::new();
unsafe {
let max_displays = 10u32;
- let mut active_displays = [0u32, ..10];
+ let mut active_displays = [0u32; 10];
let mut display_count = 0;
display::CGGetActiveDisplayList(max_displays,
&mut active_displays[0],