aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
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/win32
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/win32')
-rw-r--r--src/win32/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index e6964b4..984278a 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -289,6 +289,10 @@ impl Window {
pub fn set_cursor(&self, cursor: MouseCursor) {
unimplemented!()
}
+
+ pub fn hidpi_factor(&self) -> f32 {
+ 1.0
+ }
}
#[unsafe_destructor]