diff options
Diffstat (limited to 'toolkit/source/awt/vclxbitmap.cxx')
-rw-r--r-- | toolkit/source/awt/vclxbitmap.cxx | 5 |
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: */ |