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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 20 14:33:20 UTC 2021


 vcl/headless/svpgdi.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 1727fe82330dcf67eeece4eacfd4907f85714b0f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Aug 19 13:01:33 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 20 16:32:40 2021 +0200

    tdf#142394 return to using CAIRO_OPERATOR_SOURCE in drawBitmap
    
    since
    
    commit cd09fc9451897e6efedbf9f5e1d5b9bd96e65cb5
    Date:   Mon Mar 22 19:06:15 2021 +0100
    
        do not enable mbSupportsBitmap32 for headless (tdf#141171)
    
    turned back off the mbSupportsBitmap32 support experiemented with in
    
    commit 86ea64f216819696cd86d1926aff0a138ace2baf
    Date:   Fri Feb 15 13:14:32 2019 +0100
    
        Support for native 32bit Bitmap in VCL and SVP (cairo) backend
    
    Change-Id: I818c3f11d0334278a65a0e45b61141327669121d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120709
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Jenkins

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 926ef9fe1f6d..2a5d1ba350ad 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -2168,7 +2168,12 @@ void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const SalBitmap& rSourceB
         return;
     }
 
+#if 0 // LO code is not yet bitmap32-ready.
+      // if m_bSupportsBitmap32 becomes trye for Svp revisit this
     copyWithOperator(rTR, source, CAIRO_OPERATOR_OVER);
+#else
+    copyWithOperator(rTR, source, CAIRO_OPERATOR_SOURCE);
+#endif
 }
 
 void SvpSalGraphics::drawBitmap(const SalTwoRect& rTR, const BitmapBuffer* pBuffer, cairo_operator_t eOp)


More information about the Libreoffice-commits mailing list