From 8a61929eb8e62097cf8ef0764dba233000fd1e5f Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 28 Apr 2024 19:21:01 +0200 Subject: cocoa-cb: add support for macOS color space transformation (EDR/HDR) by default utilises the color space of the screen on which the window is located. if a specific value is defined, it will instead be utilised. depending on the chosen color space the macOS EDR (HDR) support is activated and that OS's transformation (tone mapping) is used. Fixes #7341 --- osdep/mac/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'osdep/mac/meson.build') diff --git a/osdep/mac/meson.build b/osdep/mac/meson.build index 8ddbdbaddf..4358173c17 100644 --- a/osdep/mac/meson.build +++ b/osdep/mac/meson.build @@ -19,6 +19,14 @@ if get_option('optimization') != '0' swift_flags += '-O' endif +if macos_11_features.allowed() + swift_flags += ['-D', 'HAVE_MACOS_11_FEATURES'] +endif + +if macos_12_features.allowed() + swift_flags += ['-D', 'HAVE_MACOS_12_FEATURES'] +endif + if macos_cocoa_cb.allowed() swift_flags += ['-D', 'HAVE_MACOS_COCOA_CB'] endif -- cgit v1.2.3