aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/win32/callback.rs
diff options
context:
space:
mode:
authorPeter Atashian <retep998@gmail.com>2015-08-21 11:49:10 -0400
committerPeter Atashian <retep998@gmail.com>2015-08-21 11:49:10 -0400
commit9d387b4f9820c55030724506533b0233b75f2617 (patch)
treebec33c8ff87c3b906272001ac617b0ffdcd1b803 /src/api/win32/callback.rs
parent42949fb34bd8287fab7ea162e962fbcd3eaec9ea (diff)
downloadglutin-9d387b4f9820c55030724506533b0233b75f2617.tar.gz
glutin-9d387b4f9820c55030724506533b0233b75f2617.zip
Cleanup unused import stuff
Also support i686-pc-windows-msvc Signed-off-by: Peter Atashian <retep998@gmail.com>
Diffstat (limited to 'src/api/win32/callback.rs')
-rw-r--r--src/api/win32/callback.rs8
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 {