diff options
author | Leo Wang <ilford@gmail.com> | 2020-10-18 14:28:19 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-10-20 11:04:28 +0200 |
commit | cb48b7205cc6cdcf6741bc430266481a8b6b4769 (patch) | |
tree | 83d34b3e9f0e594dd7a2b0abba5a502b2771f105 | |
parent | c2fa92b09b069cae2693ddb56143984f06cb9dc2 (diff) |
tdf#137468: Use the colour space of the main display
Change-Id: I301dcadcc469c1810e3b64e6fee6b982bebaf040
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104477
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | vcl/osx/saldata.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/osx/saldata.cxx b/vcl/osx/saldata.cxx index 5235f657f8ca..14124e4b00f8 100644 --- a/vcl/osx/saldata.cxx +++ b/vcl/osx/saldata.cxx @@ -23,6 +23,7 @@ #include <osx/saldata.hxx> #include <osx/salnsmenu.h> #include <osx/salinst.h> +#include <quartz/utils.h> #include <o3tl/enumarray.hxx> #include <tools/stream.hxx> #include <vcl/ImageTree.hxx> @@ -51,7 +52,7 @@ SalData::SalData() mpFirstPrinter( nullptr ), mpFontList( nullptr ), mpStatusItem( nil ), - mxRGBSpace( CGColorSpaceCreateWithName(kCGColorSpaceSRGB) ), + mxRGBSpace( CGDisplayCopyColorSpace( CGMainDisplayID() ) ), mxGraySpace( CGColorSpaceCreateWithName(kCGColorSpaceGenericGrayGamma2_2) ), maCursors(), mbIsScrollbarDoubleMax( false ), |