diff options
author | tsahi glik <tsahi.glik@cloudon.com> | 2014-02-14 16:27:16 -0800 |
---|---|---|
committer | tsahi glik <tsahi.glik@cloudon.com> | 2014-02-14 16:27:57 -0800 |
commit | b540f9172814f51361cf31d2a4b03e34d1d375ef (patch) | |
tree | a069013da96fdba0f15417ee96de1a4a89dd91de /drawinglayer | |
parent | cf26d7614364176742ae0303efb4499a37ae04c8 (diff) |
fix crash on ios
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index 176d7a4c38d5..ffb84cf5f3d3 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -348,7 +348,11 @@ namespace drawinglayer OSL_ENSURE(mpContent, "impBufferDevice: No content, check isVisible() before accessing (!)"); if(!mpMask) { +#ifdef IOS + mpMask = getVDevBuffer().alloc(mrOutDev, maDestPixel.GetSize(), true, 8); +#else mpMask = getVDevBuffer().alloc(mrOutDev, maDestPixel.GetSize(), true, 1); +#endif mpMask->SetMapMode(mpContent->GetMapMode()); // do NOT copy AA flag for mask! |