Merge pull request #68 from tomaka/fix-native-win

Add `platform_display` impls for win32 and android
This commit is contained in:
tomaka
2014-10-24 13:10:41 +02:00
3 changed files with 5 additions and 2 deletions

View File

@@ -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
}
}

View File

@@ -1,4 +1,5 @@
use Event;
use libc;
use std::sync::atomic::AtomicBool;
#[cfg(feature = "window")]

View File

@@ -1,5 +1,6 @@
use std::sync::atomic::AtomicBool;
use std::ptr;
use libc;
use Event;
#[cfg(feature = "window")]
@@ -235,7 +236,7 @@ impl Window {
}
pub fn platform_display(&self) -> *mut libc::c_void {
unimplemented!()
self.window as *mut libc::c_void
}
}