diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-10-31 20:17:50 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:14 +0100 |
commit | 014c9f953eeae7b3db39f88c90af8b436553e1c1 (patch) | |
tree | 12962bb3bfd9738b990380672691023c78d447fe /vcl/backendtest | |
parent | 6b38385954da46bbfa7db1a408fc824124cbb980 (diff) |
backendtest: support creating VirtualDevice with alpha
Change-Id: I74c428b9b31b89536e72d53e418fc11b3f7e4e32
Diffstat (limited to 'vcl/backendtest')
-rw-r--r-- | vcl/backendtest/outputdevice/common.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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<VirtualDevice>::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<VirtualDevice>::Create(DeviceFormat::DEFAULT, DeviceFormat::DEFAULT); + else + mpVirtualDevice = VclPtr<VirtualDevice>::Create(DeviceFormat::DEFAULT); + maVDRectangle = tools::Rectangle(Point(), Size (nWidth, nHeight)); mpVirtualDevice->SetOutputSizePixel(maVDRectangle.GetSize()); if (bEnableAA) |