From 014c9f953eeae7b3db39f88c90af8b436553e1c1 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 31 Oct 2019 20:17:50 +0100 Subject: backendtest: support creating VirtualDevice with alpha Change-Id: I74c428b9b31b89536e72d53e418fc11b3f7e4e32 --- vcl/backendtest/outputdevice/common.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vcl/backendtest') diff --git a/vcl/backendtest/outputdevice/common.cxx b/vcl/backendtest/outputdevice/common.cxx index 167664d0e3d9..00c7b473e88a 100644 --- a/vcl/backendtest/outputdevice/common.cxx +++ b/vcl/backendtest/outputdevice/common.cxx @@ -223,7 +223,6 @@ const Color OutputDeviceTestCommon::constLineColor(COL_LIGHTBLUE); const Color OutputDeviceTestCommon::constFillColor(COL_LIGHTBLUE); OutputDeviceTestCommon::OutputDeviceTestCommon() - : mpVirtualDevice(VclPtr::Create()) {} OUString OutputDeviceTestCommon::getRenderBackendName() const @@ -236,8 +235,13 @@ OUString OutputDeviceTestCommon::getRenderBackendName() const return OUString(); } -void OutputDeviceTestCommon::initialSetup(long nWidth, long nHeight, Color aColor, bool bEnableAA) +void OutputDeviceTestCommon::initialSetup(long nWidth, long nHeight, Color aColor, bool bEnableAA, bool bAlphaVirtualDevice) { + if (bAlphaVirtualDevice) + mpVirtualDevice = VclPtr::Create(DeviceFormat::DEFAULT, DeviceFormat::DEFAULT); + else + mpVirtualDevice = VclPtr::Create(DeviceFormat::DEFAULT); + maVDRectangle = tools::Rectangle(Point(), Size (nWidth, nHeight)); mpVirtualDevice->SetOutputSizePixel(maVDRectangle.GetSize()); if (bEnableAA) -- cgit