From ec76d991adc3522512f07935f78569dc4a9d089b Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 7 Jan 2016 16:01:18 +0100 Subject: Unlocks platform-specific attributes --- src/window.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index f672ed5..6d2f0d3 100644 --- a/src/window.rs +++ b/src/window.rs @@ -31,6 +31,9 @@ pub struct WindowBuilder<'a> { // Should be made public once it's stabilized. pf_reqs: PixelFormatRequirements, + + /// Platform-specific configuration. + platform_specific: platform::PlatformSpecificWindowBuilderAttributes, } impl<'a> WindowBuilder<'a> { @@ -41,6 +44,7 @@ impl<'a> WindowBuilder<'a> { pf_reqs: Default::default(), window: Default::default(), opengl: Default::default(), + platform_specific: Default::default(), } } @@ -227,7 +231,7 @@ impl<'a> WindowBuilder<'a> { } // building - platform::Window::new(&self.window, &self.pf_reqs, &self.opengl) + platform::Window::new(&self.window, &self.pf_reqs, &self.opengl, &self.platform_specific) .map(|w| Window { window: w }) } -- cgit v1.2.3