mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Removed unnecessary unsafe code block
This commit is contained in:
parent
d2ac6cfa11
commit
bc811fa587
|
@ -43,7 +43,7 @@ lazy_static! {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cursor
|
/// Cursor
|
||||||
pub type Cursor = *const u16;
|
pub type Cursor = *const winapi::wchar_t;
|
||||||
|
|
||||||
/// Contains information about states and the window for the callback.
|
/// Contains information about states and the window for the callback.
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
@ -282,10 +282,8 @@ impl Window {
|
||||||
_ => winapi::IDC_ARROW, // use arrow for the missing cases.
|
_ => winapi::IDC_ARROW, // use arrow for the missing cases.
|
||||||
};
|
};
|
||||||
|
|
||||||
unsafe {
|
let mut cur = self.window_state.lock().unwrap();
|
||||||
let mut cur = self.window_state.lock().unwrap();
|
cur.cursor = cursor_id;
|
||||||
cur.cursor = mem::transmute(cursor_id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue