summaryrefslogtreecommitdiff
path: root/vcl/quartz/salvd.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-10-02 17:41:26 +0300
committerTor Lillqvist <tml@iki.fi>2018-10-02 21:10:48 +0300
commitbaddd90d4ac0af1efe8bd09f3993d2b2f48d62b6 (patch)
treeb99d8105634070b7b5b572172d176c3a0b54f33c /vcl/quartz/salvd.cxx
parent51591ae750df644738bba4e1c8a2bb81d183a572 (diff)
LibreOfficeKit wants the tile pixmap bytes to be in BGRA order in memory
To get that with CoreGraphics on iOS we need to use also kCGImageByteOrder32Little in the CGBitmapContextCreate() call, otherwise the bytes will be in ARGB order in memory. (Not touching the macOS code here.) Change-Id: I3c2dd94feb1c6bf46c5b335f5901b29e5fe1e7fb
Diffstat (limited to 'vcl/quartz/salvd.cxx')
-rw-r--r--vcl/quartz/salvd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 84f3ee8b9631..4f7c41acc38e 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -304,7 +304,7 @@ bool AquaSalVirtualDevice::SetSize( long nDX, long nDY )
}
#endif
mxBitmapContext = CGBitmapContextCreate( pRawData, nDX, nDY,
- 8, nBytesPerRow, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst );
+ 8, nBytesPerRow, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst | kCGImageByteOrder32Little );
SAL_INFO( "vcl.cg", "CGBitmapContextCreate(" << nDX << "x" << nDY << "x32) = " << mxBitmapContext );
xCGContext = mxBitmapContext;
#endif