diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-11-08 20:15:18 +0100 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-11-08 20:15:18 +0100 |
commit | ee8682caf237a7567da021bc2450b0bdacf2470a (patch) | |
tree | 3fd4eb948c7de547dcf659dd029b7cdb1aa58f7e | |
parent | b55f18f13545422f9f19658d0ae02bb7e83ea0cd (diff) | |
download | glutin-ee8682caf237a7567da021bc2450b0bdacf2470a.tar.gz glutin-ee8682caf237a7567da021bc2450b0bdacf2470a.zip |
Add CS_OWNDC flag when creating win32 window
-rw-r--r-- | src/win32/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs index a380c84..88ff069 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -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, |