From a59ef851c35bc63151f776f2dbe2d2cda51153bf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 4 Sep 2025 17:03:59 +0200 Subject: [PATCH] BitmapEx->Bitmap in impBufferDevice now that Bitmap supports transparency Change-Id: I265d356e13c6cd8c1a34835e53b2386548cffb98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190596 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index 1e6cf9042d1b..d4ba0fd63af6 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -315,7 +315,7 @@ void doSpeedCompare(double fTrans, const Bitmap& rContent, const tools::Rectangl // "Former" method using a temporary AlphaMask & DrawBitmapEx sal_uInt8 nMaskValue(static_cast(basegfx::fround(fTrans * 255.0))); const AlphaMask aAlphaMask(aSizePixel, &nMaskValue); - rOutDev.DrawBitmapEx(rDestPixel.TopLeft(), BitmapEx(rContent, aAlphaMask)); + rOutDev.DrawBitmapEx(rDestPixel.TopLeft(), Bitmap(rContent, aAlphaMask)); } // get intermediate time @@ -328,7 +328,7 @@ void doSpeedCompare(double fTrans, const Bitmap& rContent, const tools::Rectangl rOutDev.DrawTransformedBitmapEx(basegfx::utils::createScaleTranslateB2DHomMatrix( aSizePixel.Width(), aSizePixel.Height(), rDestPixel.TopLeft().X(), rDestPixel.TopLeft().Y()), - BitmapEx(rContent), 1 - fTrans); + rContent, 1 - fTrans); } // get end time @@ -375,7 +375,7 @@ void doSpeedCompare(double fTrans, const Bitmap& rContent, const tools::Rectangl #endif } -// support for rendering Bitmap and BitmapEx contents +// support for rendering Bitmap contents namespace drawinglayer { // static global VDev buffer for VclProcessor2D/VclPixelProcessor2D