mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
Merge pull request #183 from ozkriff/master
android: Updated for rust fc2ba1393 2015-01-03
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|
||||||
use libc;
|
use libc;
|
||||||
|
use std::sync::mpsc::{Receiver, channel};
|
||||||
use {CreationError, Event, WindowBuilder};
|
use {CreationError, Event, WindowBuilder};
|
||||||
use CreationError::OsError;
|
use CreationError::OsError;
|
||||||
use events::ElementState::{Pressed, Released};
|
use events::ElementState::{Pressed, Released};
|
||||||
@@ -23,8 +24,8 @@ pub struct MonitorID;
|
|||||||
mod ffi;
|
mod ffi;
|
||||||
|
|
||||||
pub fn get_available_monitors() -> RingBuf <MonitorID> {
|
pub fn get_available_monitors() -> RingBuf <MonitorID> {
|
||||||
let rb = RingBuf::new();
|
let mut rb = RingBuf::new();
|
||||||
rb.push_back(MonitorId);
|
rb.push_back(MonitorID);
|
||||||
rb
|
rb
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user