Kaydet (Commit) 78f54616 authored tarafından Herbert Dürr's avatar Herbert Dürr

#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#.
üst ec3d4841
......@@ -423,7 +423,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment