aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx/monitor.rs
diff options
context:
space:
mode:
authorSam Ward <github@ward.io>2015-01-10 01:56:47 -0800
committerSam Ward <github@ward.io>2015-01-10 01:56:47 -0800
commit879f61dbbc1300efc36553b5b25ab8913d5d290b (patch)
tree82eff255ea25d4e5a741c539bf5781d306dadfce /src/osx/monitor.rs
parentf72b09bcb7efee96b05dbcfc34b4a5fd72ef37aa (diff)
downloadglutin-879f61dbbc1300efc36553b5b25ab8913d5d290b.tar.gz
glutin-879f61dbbc1300efc36553b5b25ab8913d5d290b.zip
OSX compatibility for Rust 1.0 alpha
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],