diff options
author | Aleksei Nikiforov <darktemplar@basealt.ru> | 2018-12-17 15:31:16 +0300 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-12-18 11:33:35 +0100 |
commit | 7802d99c35f5acfa43203f1dd6d1752af4e7c0b6 (patch) | |
tree | 6ccb080fbde5d47179002d4e50933642e664a6b2 /vcl | |
parent | 839d651db92655f392107da864195bb86f67f704 (diff) |
Qt5: fix color bits interpretation for 32bit ARGB image formats
Change-Id: Iea8547089a0ce2dc9f6a06b84552f4261fbfa0f1
Reviewed-on: https://gerrit.libreoffice.org/65311
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/Qt5Bitmap.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Bitmap.cxx b/vcl/qt5/Qt5Bitmap.cxx index 0c6a82f701e6..341c5abc64d2 100644 --- a/vcl/qt5/Qt5Bitmap.cxx +++ b/vcl/qt5/Qt5Bitmap.cxx @@ -267,7 +267,11 @@ BitmapBuffer* Qt5Bitmap::AcquireBuffer(BitmapAccessMode /*nMode*/) break; case 32: { +#ifdef OSL_BIGENDIAN pBuffer->mnFormat = ScanlineFormat::N32BitTcArgb | ScanlineFormat::TopDown; +#else + pBuffer->mnFormat = ScanlineFormat::N32BitTcBgra | ScanlineFormat::TopDown; +#endif pBuffer->maPalette = aEmptyPalette; break; } |