Add support for sRGB attribute and fix creation on windows

This commit is contained in:
Pierre Krieger 2015-04-03 14:02:33 +02:00
parent 41044c160a
commit 65f4809280
4 changed files with 41 additions and 1 deletions

View file

@ -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,