Yet another place where macos_colorspace was broken

This commit is contained in:
Kovid Goyal 2022-06-08 07:17:34 +05:30
parent 9dbafcc368
commit 80ad596d3d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -771,11 +771,12 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) {
#endif #endif
} }
#ifndef __APPLE__ #ifdef __APPLE__
glfwWindowHint(GLFW_COCOA_COLOR_SPACE, OPT(macos_colorspace));
#else
glfwWindowHintString(GLFW_X11_INSTANCE_NAME, wm_class_name); glfwWindowHintString(GLFW_X11_INSTANCE_NAME, wm_class_name);
glfwWindowHintString(GLFW_X11_CLASS_NAME, wm_class_class); glfwWindowHintString(GLFW_X11_CLASS_NAME, wm_class_class);
glfwWindowHintString(GLFW_WAYLAND_APP_ID, wm_class_class); glfwWindowHintString(GLFW_WAYLAND_APP_ID, wm_class_class);
glfwWindowHint(GLFW_COCOA_COLOR_SPACE, OPT(macos_colorspace));
#endif #endif
if (global_state.num_os_windows >= MAX_CHILDREN) { if (global_state.num_os_windows >= MAX_CHILDREN) {