mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Add CS_OWNDC flag when creating win32 window
This commit is contained in:
parent
b55f18f135
commit
ee8682caf2
|
@ -39,7 +39,7 @@ pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: Strin
|
|||
|
||||
let class = ffi::WNDCLASSEX {
|
||||
cbSize: mem::size_of::<ffi::WNDCLASSEX>() as ffi::UINT,
|
||||
style: ffi::CS_HREDRAW | ffi::CS_VREDRAW,
|
||||
style: ffi::CS_HREDRAW | ffi::CS_VREDRAW | ffi::CS_OWNDC,
|
||||
lpfnWndProc: callback,
|
||||
cbClsExtra: 0,
|
||||
cbWndExtra: 0,
|
||||
|
|
Loading…
Reference in a new issue