From 6d404f9ccad3ac6a7ffb83876ae7a656bc2d4547 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 5 Feb 2023 11:29:27 +0100 Subject: [PATCH] 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 --- vcl/source/app/salvtables.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 43a4b6305395..7c2f726a9b9b 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -661,9 +661,10 @@ OUString SalInstanceWidget::strip_mnemonic(const OUString& rLabel) const VclPtr SalInstanceWidget::create_virtual_device() const { - // create with (annoying) separate alpha layer that LibreOffice itself uses - return VclPtr::Create(*Application::GetDefaultDevice(), - DeviceFormat::WITH_ALPHA); + // create with no separate alpha layer like everything sane does + auto xRet = VclPtr::Create(); + xRet->SetBackground(COL_TRANSPARENT); + return xRet; } void SalInstanceWidget::call_attention_to()