diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-20 15:37:11 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:18 +0100 |
commit | d9879200ca3c0167b982ffecfa927bfac46b94c6 (patch) | |
tree | 3974b0c552e9da6dbf39bb044a79dd450add69d1 /drawinglayer | |
parent | 6a0f8d88053bd7d33bc7d2032fb682f5579d10d0 (diff) |
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
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/texture/texture3d.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drawinglayer/source/texture/texture3d.cxx b/drawinglayer/source/texture/texture3d.cxx index 3c5f7d5e29bf..8874d3425599 100644 --- a/drawinglayer/source/texture/texture3d.cxx +++ b/drawinglayer/source/texture/texture3d.cxx @@ -23,6 +23,7 @@ #include <drawinglayer/texture/texture3d.hxx> #include <vcl/bitmapaccess.hxx> +#include <vcl/BitmapTools.hxx> #include <drawinglayer/primitive3d/hatchtextureprimitive3d.hxx> #include <sal/log.hxx> @@ -76,6 +77,8 @@ namespace drawinglayer mbIsAlpha(false), mbIsTransparent(maBitmapEx.IsTransparent()) { + if(vcl::bitmap::convertBitmap32To24Plus8(maBitmapEx,maBitmapEx)) + mbIsTransparent = maBitmapEx.IsTransparent(); // #121194# Todo: use alpha channel, too (for 3d) maBitmap = maBitmapEx.GetBitmap(); |