mirror of
https://github.com/storytold/winit.git
synced 2026-11-26 06:11:24 +01:00
Implement MonitorId::get_dimensions for Android (#400)
This commit is contained in:
1 parent
9b5254adeb
commit
ff17eff00f
2 files changed
+6
-1
No files matched your search
@@ -161,7 +161,10 @@ impl MonitorId {
|
||||
|
||||
#[inline]
|
||||
pub fn get_dimensions(&self) -> (u32, u32) {
|
||||
unimplemented!()
|
||||
unsafe {
|
||||
let window = android_glue::get_native_window();
|
||||
(ffi::ANativeWindow_getWidth(window) as u32, ffi::ANativeWindow_getHeight(window) as u32)
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in new issue
Block a user