make create_virtual_device not use a separate alpha layer

so that the gtk and the normal path do the same thing

Change-Id: I69bb7be98e5834b0f20db66a67b3c37cc9d09676
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146566
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-02-23 06:12:39 +00:00
committed by Noel Grandin
parent e4fb37353e
commit 6d404f9cca
+4 -3
View File
@@ -661,9 +661,10 @@ OUString SalInstanceWidget::strip_mnemonic(const OUString& rLabel) const
VclPtr<VirtualDevice> SalInstanceWidget::create_virtual_device() const
{
// create with (annoying) separate alpha layer that LibreOffice itself uses
return VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(),
DeviceFormat::WITH_ALPHA);
// create with no separate alpha layer like everything sane does
auto xRet = VclPtr<VirtualDevice>::Create();
xRet->SetBackground(COL_TRANSPARENT);
return xRet;
}
void SalInstanceWidget::call_attention_to()