Request an SRGB output buffer from the window system explicitly

Possible fix for #6845
This commit is contained in:
Kovid Goyal 2023-12-01 13:50:11 +05:30
parent 788295e534
commit 97f5cad335
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1034,6 +1034,8 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) {
glfwSetHasCurrentSelectionCallback(has_current_selection);
glfwSetIMECursorPositionCallback(get_ime_cursor_position);
glfwSetSystemColorThemeChangeCallback(on_system_color_scheme_change);
// Request SRGB output buffer
glfwWindowHint(GLFW_SRGB_CAPABLE, true);
#ifdef __APPLE__
cocoa_set_activation_policy(OPT(macos_hide_from_tasks));
glfwWindowHint(GLFW_COCOA_GRAPHICS_SWITCHING, true);