From 65f4809280b9b85bb55cfc7b72274fb56e094b4d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 3 Apr 2015 14:02:33 +0200 Subject: Add support for sRGB attribute and fix creation on windows --- src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index acdf445..bf040b0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -129,6 +129,12 @@ impl<'a> WindowBuilder<'a> { self } + /// Sets whether sRGB should be enabled on the window. `None` means "I don't care". + pub fn with_srgb(mut self, srgb_enabled: Option) -> WindowBuilder<'a> { + self.attribs.srgb = srgb_enabled; + self + } + /// Builds the window. /// /// Error should be very rare and only occur in case of permission denied, incompatible system, -- cgit v1.2.3