summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-02-05 11:29:27 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-23 06:12:39 +0000
commit6d404f9ccad3ac6a7ffb83876ae7a656bc2d4547 (patch)
tree8688c69d4477205df67db28eaa1e0849befcca9d /vcl/source/app
parente4fb37353e2f9f998c028319c5fa083bf3eaa4cc (diff)
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>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx7
1 files 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<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()