diff options
Diffstat (limited to 'src/window.rs')
-rw-r--r-- | src/window.rs | 6 |
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, |