vcl/headless/CairoCommon.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e895d29150cce2900d62d670dad8ee33452c4a01
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Nov 21 09:47:49 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri Nov 21 15:38:05 2025 +0100

    tdf#169533 slide background images not shown in Presenter console
    
    regression from
      commit 4bc08277e8fcfc37105f1427ca2f0d596d39eccd
      Author: Noel Grandin <[email protected]>
      Date:   Fri Oct 17 15:11:59 2025 +0200
      fix DrawPolyPolygon alpha behaviour
    
    Change-Id: Icf2f1789e6f5ef5d67668b7b71f23948018a2dff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194299
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx
index 069e7260d17f..3cc7ae56ef8b 100644
--- a/vcl/headless/CairoCommon.cxx
+++ b/vcl/headless/CairoCommon.cxx
@@ -629,7 +629,6 @@ cairo_t* CairoCommon::createTmpCompatibleCairoContext() 
const
 
 void CairoCommon::applyColor(cairo_t* cr, Color aColor, double fTransparency)
 {
-    cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
     if (cairo_surface_get_content(cairo_get_target(cr)) != CAIRO_CONTENT_ALPHA)
     {
         cairo_set_source_rgba(cr, aColor.GetRed() / 255.0, aColor.GetGreen() / 
255.0,
@@ -639,6 +638,7 @@ void CairoCommon::applyColor(cairo_t* cr, Color aColor, 
double fTransparency)
     {
         double fSet = aColor == COL_BLACK ? 1.0 : 0.0;
         cairo_set_source_rgba(cr, 1, 1, 1, fSet);
+        cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
     }
 }
 

Reply via email to