aboutsummaryrefslogtreecommitdiffstats
path: root/src/android
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-24 12:54:58 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-24 12:54:58 +0200
commit0eda82c28fc776923bd5139ca03be503195b0010 (patch)
tree453a82ef07b829adf8fe885d921ef68093323a5c /src/android
parent2c9eaf86512a77da5f20acc87d9c5cd949078a85 (diff)
downloadglutin-0eda82c28fc776923bd5139ca03be503195b0010.tar.gz
glutin-0eda82c28fc776923bd5139ca03be503195b0010.zip
Add `platform_display` impls for win32 and android
Fix the cocoa function
Diffstat (limited to 'src/android')
-rw-r--r--src/android/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs
index ef2e5e0..4149cc9 100644
--- a/src/android/mod.rs
+++ b/src/android/mod.rs
@@ -1,6 +1,7 @@
extern crate android_glue;
extern crate native;
+use libc;
use {Event, WindowBuilder};
pub struct Window {
@@ -188,7 +189,7 @@ impl Window {
}
pub fn platform_display(&self) -> *mut libc::c_void {
- unimplemented!()
+ self.surface as *mut libc::c_void
}
}