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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Dec 26 11:32:00 UTC 2018


 vcl/quartz/salbmp.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 993913469e74e9db9743004bbe36aa412411671c
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Wed Dec 26 13:31:16 2018 +0200
Commit:     Tor Lillqvist <tml at iki.fi>
CommitDate: Wed Dec 26 13:31:16 2018 +0200

    Add some pondering about code of questionable provenance in a comment
    
    Change-Id: I20b3c8ba0ae4018307a97150440c708cfa3edc40

diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 34fd42caf2ad..791844632267 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -955,6 +955,11 @@ bool QuartzSalBitmap::GetSystemData( BitmapSystemData& rData )
         {
             /**
              * We need to hack things because VCL does not use kCGBitmapByteOrder32Host, while Cairo requires it.
+             *
+             * Not sure what the above comment means. We don't use Cairo on macOS or iOS.
+             *
+             * This whole if statement was originally (before 2011) inside #ifdef CAIRO. Did we use Cairo on Mac back then?
+             * Anyway, nowadays (since many years, I think) we don't, so should this if statement be dropped? Fun.
              */
             SAL_INFO("vcl.cg", "QuartzSalBitmap::" << __func__ << "(): kCGBitmapByteOrder32Host not found => inserting it.");
 


More information about the Libreoffice-commits mailing list