From b153d147c9d813f78dd551fc186c261f52c929a1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Apr 2021 15:27:14 +0200 Subject: remove support for BITMASK in vcl backends Rather use a proper alpha channel if we need transparency. This is another small step towards merged alpha in our vcl layer. I suspect the intent in a lot of this code was to save memory. Which have been a thing way back then, but these days our backends mostly end up doing a copy-and-convert to a real alpha channel anyway, so the existing code is actually now a pessimisation. Change-Id: I4a2bcbb2f76b841f05bc00580f364492829c69de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114808 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index ff0b830677a5..e8174733bf34 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -367,7 +367,7 @@ namespace drawinglayer::primitive2d maGraphic(rGraphic), maAnimation(rGraphic.GetAnimation()), maVirtualDevice(*Application::GetDefaultDevice()), - maVirtualDeviceMask(*Application::GetDefaultDevice(), DeviceFormat::BITMASK), + maVirtualDeviceMask(*Application::GetDefaultDevice()), mnNextFrameToPrepare(SAL_MAX_UINT32), maBufferedFirstFrame(), maBufferedPrimitives(), -- cgit v1.2.3