diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-06 13:18:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-06 15:22:17 +0200 |
commit | e7424ff25a724ea5bb54b2282d5c3cbf74c92053 (patch) | |
tree | 527a0c549ef83439ff36ab77f7e3419c6ba94d99 /vcl | |
parent | d56dbdf3cca6d7a19008a1267c64675daa7da525 (diff) |
tdf#141504 qt5: ugly images
regression from
commit c181e510c5f5e74f1f6824b64637849aace9ae63
Date: Thu Jan 7 09:46:07 2021 +0200
convert internal bitmap formats transparency->alpha
Change-Id: I858ba2c986bdac6f7e26145efde253485e8b2281
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113660
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/Qt5Graphics_GDI.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx index 9cc2821a8ad7..bfcea039fd90 100644 --- a/vcl/qt5/Qt5Graphics_GDI.cxx +++ b/vcl/qt5/Qt5Graphics_GDI.cxx @@ -583,7 +583,7 @@ static bool getAlphaImage(const SalBitmap& rSourceBitmap, const SalBitmap& rAlph uchar* image_line = rAlphaImage.scanLine(y); const uchar* alpha_line = pAlpha->scanLine(y); for (int x = 0; x < rAlphaImage.width(); ++x, image_line += 4) - image_line[3] = alpha_line[x]; + image_line[3] = 255 - alpha_line[x]; } } else |