From d9879200ca3c0167b982ffecfa927bfac46b94c6 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 20 Nov 2019 15:37:11 +0100 Subject: handle properly true 32bit bitmaps in some places I.e. those created with vcl::BackendCapabilities::mbSupportsBitmap32 set. But there are quite possibly many more places that do not expect that the Bitmap itself would contain alpha. Change-Id: I83db37b3d346f42565f96b9bbf81c71b97b6bf8b --- vcl/unx/generic/window/salframe.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/unx/generic') diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 8ac555009541..8b8f029b1897 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -261,6 +261,7 @@ static void CreateNetWmAppIcon( sal_uInt16 nIcon, NetWmIconData& netwm_icon ) if( aIcon.IsEmpty()) continue; + vcl::bitmap::convertBitmap32To24Plus8(aIcon, aIcon); Bitmap icon = aIcon.GetBitmap(); AlphaMask mask; switch( aIcon.GetTransparentType()) -- cgit