mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Fix bug with 64bits rustc
This commit is contained in:
parent
cb32e64b72
commit
cdee854d2e
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ extern "stdcall" fn callback(window: ffi::HWND, msg: ffi::UINT,
|
||||||
ffi::WM_CHAR => {
|
ffi::WM_CHAR => {
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use events::ReceivedCharacter;
|
use events::ReceivedCharacter;
|
||||||
let chr: char = unsafe { mem::transmute(wparam) };
|
let chr: char = unsafe { mem::transmute(wparam as u32) };
|
||||||
send_event(window, ReceivedCharacter(chr));
|
send_event(window, ReceivedCharacter(chr));
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue