diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-05-03 12:03:12 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-06-01 10:06:29 +0200 |
commit | 27d5588319b536d1897f322a8c029556fe60767a (patch) | |
tree | 14a7d7b3bf235140b34cd90006b75134eee40c75 /vcl | |
parent | af6435b678561f620c367694df56268aa9d63627 (diff) |
Use QImage format with premultiplied alpha
as that's what cairo (almost) silently expects
Change-Id: If1ad6f28fcc6fb7ddc2ac4fcec0a31bad512cb2a
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/qt5/Qt5Tools.hxx | 1 | ||||
-rw-r--r-- | vcl/unx/kde5/KDE5SalGraphics.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5Tools.hxx b/vcl/inc/qt5/Qt5Tools.hxx index c7b47014beb0..d632a5ed8ce5 100644 --- a/vcl/inc/qt5/Qt5Tools.hxx +++ b/vcl/inc/qt5/Qt5Tools.hxx @@ -91,6 +91,7 @@ inline sal_uInt16 getFormatBits(QImage::Format eFormat) case QImage::Format_RGB888: return 24; case Qt5_DefaultFormat32: + case QImage::Format_ARGB32_Premultiplied: return 32; default: std::abort(); diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx index 13b791943199..92275052013a 100644 --- a/vcl/unx/kde5/KDE5SalGraphics.cxx +++ b/vcl/unx/kde5/KDE5SalGraphics.cxx @@ -180,7 +180,7 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, //if no image, or resized, make a new image if (!m_image || m_image->size() != widgetRect.size()) { - m_image.reset(new QImage( widgetRect.width(), widgetRect.height(), QImage::Format_ARGB32 ) ); + m_image.reset(new QImage( widgetRect.width(), widgetRect.height(), QImage::Format_ARGB32_Premultiplied ) ); } // Default image color - just once |