From fd5e77f23e18c131fe2ae20ec3aad10394a7dbc0 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 19 Dec 2014 11:27:03 +1000 Subject: 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. --- src/win32/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/win32/mod.rs') 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] -- cgit v1.2.3