From e7424ff25a724ea5bb54b2282d5c3cbf74c92053 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Apr 2021 13:18:00 +0200 Subject: 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 --- vcl/qt5/Qt5Graphics_GDI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3