mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Merge pull request #296 from tomaka/tomaka-patch-2
Fix win32 compilation
This commit is contained in:
commit
d147200c02
|
@ -297,7 +297,7 @@ fn register_window_class() -> Vec<u16> {
|
||||||
let class = winapi::WNDCLASSEXW {
|
let class = winapi::WNDCLASSEXW {
|
||||||
cbSize: mem::size_of::<winapi::WNDCLASSEXW>() as winapi::UINT,
|
cbSize: mem::size_of::<winapi::WNDCLASSEXW>() as winapi::UINT,
|
||||||
style: winapi::CS_HREDRAW | winapi::CS_VREDRAW | winapi::CS_OWNDC,
|
style: winapi::CS_HREDRAW | winapi::CS_VREDRAW | winapi::CS_OWNDC,
|
||||||
lpfnWndProc: callback::callback,
|
lpfnWndProc: Some(callback::callback),
|
||||||
cbClsExtra: 0,
|
cbClsExtra: 0,
|
||||||
cbWndExtra: 0,
|
cbWndExtra: 0,
|
||||||
hInstance: unsafe { kernel32::GetModuleHandleW(ptr::null()) },
|
hInstance: unsafe { kernel32::GetModuleHandleW(ptr::null()) },
|
||||||
|
|
Loading…
Reference in a new issue