diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-12-19 11:27:03 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-19 11:54:11 +1000 |
commit | fd5e77f23e18c131fe2ae20ec3aad10394a7dbc0 (patch) | |
tree | f9dd861298b762039d715730d89bdd178d5e50da /src/android | |
parent | bcda3631887cf84f09f418946c462211cd7a540c (diff) | |
download | glutin-fd5e77f23e18c131fe2ae20ec3aad10394a7dbc0.tar.gz glutin-fd5e77f23e18c131fe2ae20ec3aad10394a7dbc0.zip |
Add missing get_api stubs.
Add hidpi_factor() support for retina displays.
Fix Resize and MouseMoved events to handle retina displays.
Fix inverted y position for MouseMoved events on mac.
Fix initial painting on retina display.
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs index 6987f52..62714dc 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -63,6 +63,10 @@ impl HeadlessContext { pub fn get_proc_address(&self, _addr: &str) -> *const () { unimplemented!() } + + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } #[cfg(feature = "headless")] @@ -284,6 +288,10 @@ impl Window { pub fn set_cursor(&self, _: MouseCursor) { } + + pub fn hidpi_factor(&self) -> f32 { + 1.0 + } } unsafe impl Send for Window {} |