summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-16 09:51:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-16 11:45:19 +0100
commite568d233a3f9cbc926bfa12dac3fbc6d29a4b6c7 (patch)
treec5a60723f8a3315b4139e7f8ceef2780559a6b22 /toolkit
parent1f3630e2fb35389835cb326a46bd539660942632 (diff)
move framework/toolkit use of BitmapEx::GetMask inside vcl
Change-Id: I2a942377d6e9b8b09673e5ad2804e0e7fb2bb943 Reviewed-on: https://gerrit.libreoffice.org/51387 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxbitmap.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/source/awt/vclxbitmap.cxx b/toolkit/source/awt/vclxbitmap.cxx
index da0f08382a36..c8f531df3951 100644
--- a/toolkit/source/awt/vclxbitmap.cxx
+++ b/toolkit/source/awt/vclxbitmap.cxx
@@ -24,6 +24,7 @@
#include <tools/stream.hxx>
#include <rtl/uuid.h>
#include <vcl/dibtools.hxx>
+#include <vcl/BitmapTools.hxx>
// class VCLXBitmap
@@ -72,9 +73,7 @@ css::uno::Sequence< sal_Int8 > VCLXBitmap::getMaskDIB()
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
- SvMemoryStream aMem;
- WriteDIB(maBitmap.GetMask(), aMem, false, true);
- return css::uno::Sequence<sal_Int8>( static_cast<sal_Int8 const *>(aMem.GetData()), aMem.Tell() );
+ return vcl::bitmap::GetMaskDIB(maBitmap);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */