vcl/source/gdi/print.cxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit 25ffb536755f10e2dfd3da26ce4dacdab271a044
Author:     Patrick Luby <[email protected]>
AuthorDate: Mon Sep 1 11:32:41 2025 -0400
Commit:     Patrick Luby <[email protected]>
CommitDate: Mon Sep 1 23:15:26 2025 +0200

    Revert: draw alpha bitmaps directly to print graphics on macOS
    
    This partially reverts commit fa3dd1c3a190fcbead9d39038a30f0fd306a1baa.
    Apparently, the special handling of alpha bitmaps when printing on macOS
    is no longer needed and the alpha blending code used on other platforms
    now works as expected on macOS.
    
    Change-Id: Ib72e57ec679971c8db06160ae0354c8ba45be91e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190496
    Tested-by: Jenkins
    Reviewed-by: Patrick Luby <[email protected]>

diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index fbfb3fe2222a..eb918c2f2602 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -192,14 +192,6 @@ void Printer::DrawDeviceBitmapEx( const Point& rDestPt, 
const Size& rDestSize,
                                 const Point& rSrcPtPixel, const Size& 
rSrcSizePixel,
                                 Bitmap& rBmp )
 {
-#ifdef MACOSX
-    // tdf#164354 draw alpha bitmaps directly to print graphics on macOS
-    // On macOS, there are no known problems drawing semi-transparent
-    // bitmaps so just draw the alpha bitmap directly without any blending.
-    AlphaMask aAlpha = rBmp.CreateAlphaMask();
-    aAlpha.Invert();
-    DrawDeviceAlphaBitmap( Bitmap(rBmp.CreateColorBitmap(), aAlpha), rDestPt, 
rDestSize, rSrcPtPixel, rSrcSizePixel );
-#else
     if( rBmp.HasAlpha() )
     {
         // #107169# For true alpha bitmaps, no longer masking the
@@ -213,7 +205,6 @@ void Printer::DrawDeviceBitmapEx( const Point& rDestPt, 
const Size& rDestSize,
     {
         ImplPrintTransparent( rBmp, rDestPt, rDestSize, rSrcPtPixel, 
rSrcSizePixel );
     }
-#endif
 }
 
 void Printer::EmulateDrawTransparent ( const tools::PolyPolygon& rPolyPoly,

Reply via email to