Cleanup unused import stuff
Also support i686-pc-windows-msvc Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
parent
42949fb34b
commit
9d387b4f98
4 changed files with 18 additions and 17 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue