diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-10-21 11:04:24 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2020-10-21 10:17:39 +0200 |
commit | 86d4419c6c4961c8b473decccea99338c176ffe1 (patch) | |
tree | 18f5a2f82de117a45320a45134764a12179c806a /vcl | |
parent | 22ceb50ad866e97fdf6c438aa0f771fa6844abb7 (diff) |
Revert "tdf#137468: Use the colour space of the main display"
Sadly that commit made the CppunitTest_vcl_bitmap_render_test fail on
many Macs, including my 2020 iMac.
This reverts commit cb48b7205cc6cdcf6741bc430266481a8b6b4769.
Change-Id: If1a9605c112904d253664cbc9749cf3987dff473
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104613
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/saldata.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/osx/saldata.cxx b/vcl/osx/saldata.cxx index 14124e4b00f8..5235f657f8ca 100644 --- a/vcl/osx/saldata.cxx +++ b/vcl/osx/saldata.cxx @@ -23,7 +23,6 @@ #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> @@ -52,7 +51,7 @@ SalData::SalData() mpFirstPrinter( nullptr ), mpFontList( nullptr ), mpStatusItem( nil ), - mxRGBSpace( CGDisplayCopyColorSpace( CGMainDisplayID() ) ), + mxRGBSpace( CGColorSpaceCreateWithName(kCGColorSpaceSRGB) ), mxGraySpace( CGColorSpaceCreateWithName(kCGColorSpaceGenericGrayGamma2_2) ), maCursors(), mbIsScrollbarDoubleMax( false ), |