aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authormitchmindtree <mitchell.nordine@gmail.com>2015-02-22 00:40:23 +1100
committermitchmindtree <mitchell.nordine@gmail.com>2015-02-22 00:40:23 +1100
commit0389c834e4b456ad6dcce4f687c69ab0e84beafa (patch)
treef363304dda14fd020e32f2e422c6022c625286e5 /src/android
parent9bb41bf2773a353804ab710bb65c0e21a4c22a20 (diff)
downloadglutin-0389c834e4b456ad6dcce4f687c69ab0e84beafa.tar.gz
glutin-0389c834e4b456ad6dcce4f687c69ab0e84beafa.zip
RingBuf -> VecDeque for other platforms, as_slice_with_nul -> as_bytes_with_nul
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index 30e6c08..563ca50 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -9,7 +9,7 @@ use events::ElementState::{Pressed, Released};
use events::Event::{MouseInput, MouseMoved};
use events::MouseButton;
-use std::collections::RingBuf;
+use std::collections::VecDeque;
use Api;
use BuilderAttribs;
@@ -26,8 +26,8 @@ pub struct MonitorID;
mod ffi;
-pub fn get_available_monitors() -> RingBuf <MonitorID> {
- let mut rb = RingBuf::new();
+pub fn get_available_monitors() -> VecDeque <MonitorID> {
+ let mut rb = VecDeque::new();
rb.push_back(MonitorID);
rb
}
@@ -313,7 +313,7 @@ impl Window {
pub fn get_proc_address(&self, addr: &str) -> *const () {
let addr = CString::from_slice(addr.as_bytes());
- let addr = addr.as_slice_with_nul().as_ptr();
+ let addr = addr.as_bytes_with_nul().as_ptr();
unsafe {
ffi::egl::GetProcAddress(addr) as *const ()
}