aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-11-08 20:15:18 +0100
committerTomaka17 <pierre.krieger1708@gmail.com>2014-11-08 20:15:18 +0100
commitee8682caf237a7567da021bc2450b0bdacf2470a (patch)
tree3fd4eb948c7de547dcf659dd029b7cdb1aa58f7e
parentb55f18f13545422f9f19658d0ae02bb7e83ea0cd (diff)
downloadglutin-ee8682caf237a7567da021bc2450b0bdacf2470a.tar.gz
glutin-ee8682caf237a7567da021bc2450b0bdacf2470a.zip
Add CS_OWNDC flag when creating win32 window
-rw-r--r--src/win32/init.rs2
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,