aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-04-03 14:02:33 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-04-08 09:44:19 +0200
commit65f4809280b9b85bb55cfc7b72274fb56e094b4d (patch)
tree7619b598634ecd91e10b7789fbcb92340f4e7737 /src/window.rs
parent41044c160aa47ea705995da0f09fd77148ff67e2 (diff)
downloadglutin-65f4809280b9b85bb55cfc7b72274fb56e094b4d.tar.gz
glutin-65f4809280b9b85bb55cfc7b72274fb56e094b4d.zip
Add support for sRGB attribute and fix creation on windows
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs6
1 files changed, 6 insertions, 0 deletions
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<bool>) -> 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,