diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-08-21 18:24:12 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-08-21 18:24:12 +0200 |
commit | 73e4a7d4b17bfc08acc198e0336a2f5c7fd2036a (patch) | |
tree | bec33c8ff87c3b906272001ac617b0ffdcd1b803 /src/api/win32/callback.rs | |
parent | 42949fb34bd8287fab7ea162e962fbcd3eaec9ea (diff) | |
parent | 9d387b4f9820c55030724506533b0233b75f2617 (diff) | |
download | glutin-73e4a7d4b17bfc08acc198e0336a2f5c7fd2036a.tar.gz glutin-73e4a7d4b17bfc08acc198e0336a2f5c7fd2036a.zip |
Merge pull request #576 from retep998/master
Cleanup unused import stuff
Diffstat (limited to 'src/api/win32/callback.rs')
-rw-r--r-- | src/api/win32/callback.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/win32/callback.rs b/src/api/win32/callback.rs index 25beb7b..5667ca8 100644 --- a/src/api/win32/callback.rs +++ b/src/api/win32/callback.rs @@ -45,7 +45,7 @@ fn send_event(input_window: winapi::HWND, event: Event) { } /// This is the callback that is called by `DispatchMessage` in the events loop. -/// +/// /// Returning 0 tells the Win32 API that the message has been processed. // FIXME: detect WM_DWMCOMPOSITIONCHANGED and call DwmEnableBlurBehindWindow if necessary pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, @@ -202,7 +202,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, if data.header.dwType == winapi::RIM_TYPEMOUSE { let _x = data.mouse.lLastX; // FIXME: this is not always the relative movement let _y = data.mouse.lLastY; - // TODO: + // TODO: //send_event(window, Event::MouseRawMovement { x: x, y: y }); 0 @@ -230,7 +230,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, let cstash = cstash.as_ref(); // there's a very bizarre borrow checker bug // possibly related to rust-lang/rust/#23338 - let cursor_state = if let Some(cstash) = cstash { + let _cursor_state = if let Some(cstash) = cstash { if let Ok(cursor_state) = cstash.cursor_state.lock() { match *cursor_state { CursorState::Normal => { @@ -256,7 +256,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, use events::Event::DroppedFile; let hdrop = wparam as winapi::HDROP; - let mut pathbuf: [u16; winapi::MAX_PATH] = unsafe { mem::uninitialized() }; + let mut pathbuf: [u16; winapi::MAX_PATH] = mem::uninitialized(); let num_drops = shell32::DragQueryFileW(hdrop, 0xFFFFFFFF, ptr::null_mut(), 0); for i in 0..num_drops { |