[Libreoffice-commits] core.git: vcl/osx

Leo Wang (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 20 09:05:16 UTC 2020


 vcl/osx/saldata.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit cb48b7205cc6cdcf6741bc430266481a8b6b4769
Author:     Leo Wang <ilford at gmail.com>
AuthorDate: Sun Oct 18 14:28:19 2020 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Oct 20 11:04:28 2020 +0200

    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 at collabora.com>

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 ),


More information about the Libreoffice-commits mailing list