diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-11-01 09:30:40 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-11-01 09:30:40 +0100 |
commit | 605bf39b78c0afc38f8d14b12605f9e3a27bac65 (patch) | |
tree | 1bad2622d17f139c3b072d72ae411103a1fcfc1d /src/win32/init.rs | |
parent | a479b2f60c7917a7c7a73b15c22c0b20f54448b7 (diff) | |
parent | b6f74911579f1a46bfa112032b2efc38aeff1a99 (diff) | |
download | glutin-605bf39b78c0afc38f8d14b12605f9e3a27bac65.tar.gz glutin-605bf39b78c0afc38f8d14b12605f9e3a27bac65.zip |
Merge pull request #93 from tomaka/visibility
Add visibility-related functions to window
Diffstat (limited to 'src/win32/init.rs')
-rw-r--r-- | src/win32/init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs index 5168cc6..bf84973 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -17,7 +17,7 @@ local_data_key!(WINDOW: (ffi::HWND, Sender<Event>)) pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: String, builder_monitor: Option<super::MonitorID>, builder_gl_version: Option<(uint, uint)>, builder_vsync: bool, - builder_headless: bool) -> Result<Window, String> + builder_hidden: bool) -> Result<Window, String> { use std::mem; use std::os; @@ -237,7 +237,7 @@ pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: Strin (None, None) }; - let style = if builder_headless { + let style = if builder_hidden { style } else { style | ffi::WS_VISIBLE |