Kaydet (Commit) 194c7ff9 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i121534# avoid expensive emulation of 1bit masks for Mac's Quartz

üst ad6e932b
......@@ -195,7 +195,11 @@ namespace
// create BitmapEx
Bitmap aMainBitmap = aVirtualDevice.GetBitmap(Point(), aVirtualDevice.GetOutputSizePixel());
Bitmap aMaskBitmap = aVirtualDeviceMask.GetBitmap(Point(), aVirtualDeviceMask.GetOutputSizePixel());
#if defined(MACOSX)
AlphaMask aMaskBitmap( aVirtualDeviceMask.GetBitmap( Point(), aVirtualDeviceMask.GetOutputSizePixel()));
#else
Bitmap aMaskBitmap = aVirtualDeviceMask.GetBitmap( Point(), aVirtualDeviceMask.GetOutputSizePixel());
#endif
aNextStep.maBitmapEx = BitmapEx(aMainBitmap, aMaskBitmap);
// add to vector
......
......@@ -438,7 +438,12 @@ namespace drawinglayer
{
// parts will be uncovered, extend aBitmapEx with a mask bitmap
const Bitmap aContent(aBitmapEx.GetBitmap());
aBitmapEx = BitmapEx(aContent, Bitmap(aContent.GetSizePixel(), 1));
#if defined(MACOSX)
const AlphaMask aMaskBmp( aContent.GetSizePixel());
#else
const Bitmap aMaskBmp( aContent.GetSizePixel(), 1);
#endif
aBitmapEx = BitmapEx(aContent, aMaskBmp);
}
// draw using OutputDevice'sDrawTransformedBitmapEx
......
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