diff options
author | Herbert Dürr <hdu@apache.org> | 2013-07-25 13:14:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-25 16:08:55 +0100 |
commit | ff14c3b595ebe71153f97ebb8871cf024ea76959 (patch) | |
tree | 577d91c9246e1d8aff2efd5314025c09f642b3fc /drawinglayer | |
parent | 8499e78ca03c792f4fa2650e02b519094ba0baa8 (diff) |
Resolves: #i122836# fix rotated images looking corrupted on MacOSX
The solution is to intialize the images rotation mask to be opaque,
an approach that also the fix for bug #i122758#.
(cherry picked from commit 78f54616efdcfb1c8cbd1a75d3cf9faf7b5e1b8a)
Change-Id: I417aab21ded9619ae4023edf169136c7115d4a07
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 5027cb178c20..2477640faa6c 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -449,7 +449,8 @@ namespace drawinglayer // parts will be uncovered, extend aBitmapEx with a mask bitmap const Bitmap aContent(aBitmapEx.GetBitmap()); #if defined(MACOSX) - const AlphaMask aMaskBmp( aContent.GetSizePixel()); + AlphaMask aMaskBmp( aContent.GetSizePixel()); + aMaskBmp.Erase( 0); #else Bitmap aMaskBmp( aContent.GetSizePixel(), 1); aMaskBmp.Erase(Color(COL_BLACK)); // #122758# Initialize to non-transparent |