summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-12-11 20:41:09 +0200
committerTor Lillqvist <tml@collabora.com>2018-12-11 20:41:09 +0200
commit016746b9a9b85114560dead3ee226e4483a0d564 (patch)
treeaf5faf288afade9a0d81ad8223d30e6c91135037 /vcl
parent311490855235a85bceb05e6009d3c37f79b3bc2a (diff)
Adapt MACOSX/IOS ifdef for the now constness of the nFlags variable
Change-Id: Ic6c51cdc219e663c59dee32f61e337709c90fbd2
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salvd.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 96a64ae765b5..0fe4e7f923d3 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -276,9 +276,10 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
const int nBytesPerRow = (mnBitmapDepth * nDX) / 8;
void* pRawData = std::malloc( nBytesPerRow * nDY );
+#ifdef MACOSX
const int nFlags = kCGImageAlphaNoneSkipFirst;
-#ifndef MACOSX
- nFlags |= kCGImageByteOrder32Little;
+#else
+ const int nFlags = kCGImageAlphaNoneSkipFirst | kCGImageByteOrder32Little;
#endif
mxBitmapContext = CGBitmapContextCreate(pRawData, nDX, nDY, 8, nBytesPerRow,
GetSalData()->mxRGBSpace, nFlags);