From 368bc91eed446daf9c32dfbce8aec718ebb1201d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 12 Jul 2021 17:34:03 +0530 Subject: [PATCH] macOS: Render colors in the sRGB colorspace to match other macOS terminal applications Fixes #2249 --- docs/changelog.rst | 3 +++ glfw/cocoa_window.m | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1c0afec5a..1c3b920f8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -25,6 +25,9 @@ To update |kitty|, :doc:`follow the instructions `. window is considered the left and top neighbor and the next window is considered the bottom and right neighbor (:iss:`3778`) +- macOS: Render colors in the sRGB colorspace to match other macOS terminal + applications (:iss:`2249`) + 0.21.2 [2021-06-28] ---------------------- diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 6d6a7e589..123da2a3f 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1712,6 +1712,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, if (!createNativeWindow(window, wndconfig, fbconfig)) return false; + [window->ns.object setColorSpace:[NSColorSpace sRGBColorSpace]]; if (ctxconfig->client != GLFW_NO_API) {