aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/window
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-12-19 11:27:03 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-01-19 11:54:11 +1000
commitfd5e77f23e18c131fe2ae20ec3aad10394a7dbc0 (patch)
treef9dd861298b762039d715730d89bdd178d5e50da /src/x11/window
parentbcda3631887cf84f09f418946c462211cd7a540c (diff)
downloadglutin-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/x11/window')
-rw-r--r--src/x11/window/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index 5b70a19..0f74dfe 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -658,4 +658,8 @@ impl Window {
ffi::XFlush(self.x.display);
}
}
+
+ pub fn hidpi_factor(&self) -> f32 {
+ 1.0
+ }
}