diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-01-19 11:27:47 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-01-19 11:27:47 +0100 |
commit | b6f3bfa76811db8c249af08066bfb37bb1385165 (patch) | |
tree | 70534d46cd377ef393571bd84a449b4e6d7d0044 /src/android/mod.rs | |
parent | bcda3631887cf84f09f418946c462211cd7a540c (diff) | |
parent | 213f8b85346fda29fa18d03333ca9075b3a74707 (diff) | |
download | glutin-b6f3bfa76811db8c249af08066bfb37bb1385165.tar.gz glutin-b6f3bfa76811db8c249af08066bfb37bb1385165.zip |
Merge pull request #211 from glennw/upstream-fixes
Upstream of various fixes and features (details below)
Diffstat (limited to 'src/android/mod.rs')
-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..bde2417 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::OpenGlEs + } } #[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 {} |